-
Notifications
You must be signed in to change notification settings - Fork 75
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
UWP Reply URL Incorrect #149
Comments
Hi Patrick, in the sample I'm seeing step #6 at this link suggest selecting the redirect URI of form |
Yep, that's set and it's working for the Android app, however in the UserDetailsClient\App.cs class the constructor takes a parameter specialRedirectUri which is used as the redirect uri when setting up the public client. `public App(string specialRedirectUri = null)
And in the UWP MainPage.xaml.cs you have this: `public MainPage()
Which now I've read the comments in the code you need to add the app url as redirect uri in Azure, it might be worth adding it to the documentation as either an optional step or under the platform specific considerations. |
Yes, we can add that to the docs. Does it work for you now? |
@aiwangmicrosoft I am getting a similar error posted on |
Curerntly you need to set the redirect uri to "https://sso" and MSAL will internally switch to use You do not need to register "https://sso" but you do need to register We have a work item to improve this experience - please vote for it. I also added more details in our wiki: |
Does that really need to be added in the UWP MainPage.xaml.cs? I am getting an error: 'App' does not contain a constructor that takes 1 arguments. Would I have to change the constructor in App.xaml.cs file in the main project? I am confused how to pass that https://sso ! |
This is where you construct the Make sure that the redirect uri is "https://sso" and see if that works. |
Nope it's the same error :-( |
I am not sure what the error is, but |
@amirvenus , now that MSAL.NET supports, WAM, you probably want to use it? |
Sounds promising, but I don't know how to use it in a UWP app within Xamarin.Forms. |
This is this sample, @amirvenus : it was updated. See Lines 42 to 53 in bbedea6
Lines 25 to 28 in bbedea6
|
Thanks!
When I uncomment |
And when I use WithBroker:
I get this screen: and the stacktrace: |
@amirvenus : sorry I had not understood you were targetting B2C.
|
Proposing to close this issue. Feel free to open a new issue in the b2C-xamarin sample if you have one. |
Following the instructions for the Basic sample configured for a single tenant I get the following error when authenticating within the UWP "AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application".
To get the application to work I had to add a new redirect uri to my app registration with the uri: ms-app://xxxxxxx. Am I missing a step in the configuration somewhere or has there been a change in the implementation that means the documentation needs to be updated?
The text was updated successfully, but these errors were encountered: