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
Tokens returned but App does not redirect properly #27
Comments
Hi @craig-waite for aadB2CRedirectURL Can you please try changing it to to a standard weburl like this: https://.b2clogin.com/oauth2/nativeclient Let me know. |
similar issue resolution: |
Hi, I've implemented the same sample scenario and used the suggested weburl: https://tenant-name.b2clogin.com/oauth2/nativeclient As a result I am getting a blank page after authentication while the expectation is to be redirected to home page with a counter. Please advice. |
Thanks for the help on this. I am now able to log in without the app showing an error. I do now get the issue experienced by @armache above, but I'm assuming that is just because I'm not routing correctly in the Flutter code. I will update here once I have a properly working prototype to share. |
@craig-waite let me know. It just needs to route to one of the routes in flutter code. |
Hi All, We've tracked down what we were missing in our code now. Thank you all for the pointers! Here's what we changed to fix the issue:
|
@craig-waite this is great! I would encourage you to open a PR and provide this documentation for an OSS contribution. Let me know.! |
Hi,
I'm having trouble even getting the very basic demo app to work correctly. The problem I'm having is that I can log in to AAD B2C (and I can see from the network traffic that the tokens are all coming back correctly) via the plugin code provided, but once I'm logged in I get the following error:
I am currently only trying to get the flutter demo counter page hidden behind a login screen. Below is my main.dart file. The only other change I've made is to add
manifestPlaceholders += [ appAuthRedirectScheme: 'com.my.app.name' ]
to the defaultConfig section of the/android/app/build.gradle
file.Any help you could provide would be amazing as we've been going round in circles on this a for a couple of days now.
The text was updated successfully, but these errors were encountered: