Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Obtaining auth code from redirect URL (auth with PKCE)

Hello,

I am building a web api based app from Flutter and I am quite confused on the process of obtaining the auth code from the redirect URL. I created the code verifier, got the code challenge and implemented intent filters in the android manifest. I launched the url with the parameters attached to it as mentioned in the fitbit sdk. Once the authentication is completed in the web browser it is redirected back to my app but I am stuck at the place where I should get back the redirect URL with the attached code. I would be great to get some insight on this matter. Thanks a lot.

Best Answer
1 REPLY 1

Hi @Vaji 

 

When you're redirected back to your application, the authorization code should be attached to the URL.   The example in step 3 of the documentation shows 

https://myapp.com/callback?code=d62d6f5bdc13df79d9a5f#_=_

where the item in red is the authorization code.   Your application will need to parse this code from the URL.    

 

If you need additional help on this step, please describe the problem by explaining what you see or don't see.

 

Gordon

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer