-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not getting access token #69
Comments
hi @timduncan-innowell, i am also facing the same issue. Did you fix this? |
Facing the same issue, I ask from community developers to kindly help with the solution. Thank you |
@timduncan-innowell to me it looks like you are not being redirected to correct link for your app. Can you please put a breakpoint or console.log at
Linking.createURL("redirect") and this is what you need to put in Azure ad b2c redirect url config for dev env.
Note: In prod, above will be different and will depend upon on schema in app config. More about it here: https://docs.expo.dev/versions/latest/sdk/linking/#linkingcreateurlpath-namedparameters |
Everything is working correctly, we are able to signin, but not getting access token. we are getting error:null and isAuthentic false. |
@MuhammadSaadTabani there are 2 parts to it
When you refer everything is working my guess is you are referring to number 1 but unless number 2 is done you wont be authenticated. To make sure you can put a breakpoint at redirect route and double check if it ever gets hit, if not check my initial comment. If it gets hit and you still dont see it working then please provide more info what the error code etc you are getting. |
Yeah I am facing the following issues, kindly have a look at.
Auth Provider Configuration
|
Thanks for responding. My current redirectURI Now, looking at the expo Linking documentation as you suggested I see this example value when running in dev environment:
My understanding from your response is that I should change my redirectURI in the portal to be |
Hi,
After downloading the b2c-sample application and making config changes for my B2C tenant, I cannot get an access token back from getTokensAsync().
Here is my config:
I correctly get the B2C hosted signin page after clicking the LOGIN button. After entering a correct user name and password the Protected page displays "Could not authenticate".
What I do get from getTokensAsync() is:
The url seems to be the first part of the authorization code flow and afaik the package should be exchanging the authorization code for access & id tokens. The exchange does not seem to take place.
Have I done something wrong to stop the authorization code from being processed by the package and used in a token exchange?
Any help appreciated.
The text was updated successfully, but these errors were encountered: