active-directory-dotnet-graphapi-b2bportal-web icon indicating copy to clipboard operation
active-directory-dotnet-graphapi-b2bportal-web copied to clipboard

Followed Sample Set up and receive an error when configuring Site

Open marcjutras opened this issue 8 years ago • 4 comments

Hello, I have followed all of the step by step instructions for setting up this sample. When i navigate to the url and sign in as an admin i receive an error

AADSTS50011: The reply address 'https://b2bplan-webtyoeovfmkg6jo.azurewebsites.net/' does not match the reply addresses configured for the application: | AADSTS50011: The reply address 'https://b2bplan-xxxxxxxx.azurewebsites.net/' does not match the reply addresses configured for the application.

I have checked the reply URL and the homepage url and they match. When i try to sign in with a different user account that is not in my tenant i get an error that states that i need to add that acocunt as a guest account so i know that authentication is working.

Anything else i should be looking for?

marcjutras avatar Nov 01 '17 13:11 marcjutras

Make sure that the trailing forward slash on the URL is present in the AAD app config. It's picky that way.

bretthacker avatar Nov 01 '17 22:11 bretthacker

I did try that but it still does not work. Do I need to ftp and make changes to a file?

Get Outlook for Androidhttps://aka.ms/ghei36


From: Brett Hacker [email protected] Sent: Wednesday, November 1, 2017 6:04:39 PM To: Azure/active-directory-dotnet-graphapi-b2bportal-web Cc: marcjutras; Author Subject: Re: [Azure/active-directory-dotnet-graphapi-b2bportal-web] Followed Sample Set up and receive an error when configuring Site (#6)

Make sure that the trailing backslash on the URL is present in the AAD app config. It's picky that way.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Azure/active-directory-dotnet-graphapi-b2bportal-web/issues/6#issuecomment-341256982, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AfNLmZXRS99WOiGRlFy7HW67y-045utDks5syOr3gaJpZM4QOO6L.

marcjutras avatar Nov 02 '17 00:11 marcjutras

OK, I haven't played with this in a while so I just went through it and everything worked. What I noticed is that when copying the URL from the newly created web app, you DON'T have a trailing slash. So make sure that you're using https for the protocol, and make sure the trailing slash is NOT in the Azure AD configurations. Check the home page and reply URL for both the admin app and the preauth app - there are 4 places where this value is updated.

bretthacker avatar Nov 02 '17 00:11 bretthacker

I appreciate your assistance. I have gone through and the site is working. The only item not working and I receive the same error is for syncing over a work profile.

/profile/remoteprofile fails with the same error as before.

Get Outlook for Androidhttps://aka.ms/ghei36


From: Brett Hacker [email protected] Sent: Wednesday, November 1, 2017 8:34:14 PM To: Azure/active-directory-dotnet-graphapi-b2bportal-web Cc: marcjutras; Author Subject: Re: [Azure/active-directory-dotnet-graphapi-b2bportal-web] Followed Sample Set up and receive an error when configuring Site (#6)

OK, I haven't played with this in a while so I just wen through it and everything worked. What I noticed is that when copying the URL from the newly created web app, you DON'T have a trailing slash. So make sure that you're using https for the protocol, and make sure the trailing slash is NOT in the Azure AD configurations. Check the home page and reply URL for both the admin app and the preauth app - there are 4 places where this value is updated.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Azure/active-directory-dotnet-graphapi-b2bportal-web/issues/6#issuecomment-341283742, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AfNLmfepptuue6aldvpHKo-rKlZEMH95ks5syQ4GgaJpZM4QOO6L.

marcjutras avatar Nov 02 '17 12:11 marcjutras