Posts

Showing posts from August, 2017

Devil is in the (RedirectUri) detail

Image
When using Azure Active Directory (AAD) as Identity Provider for your Azure App Services , you will set up App Registrations to tell AAD how to handle your app authentication. One important bit of this is the ReplyURL ( RedirectUri ) that you need to specify for AAD to redirect the user back to your app after valid authentication. The usual flow is: User requests your app URL (ie: https://myappservice.azurewebsites.net ) User is redirected to the AAD Login page ( https://login.microsoftonline.com /.../ oauth2/ authorize ) User inserts valid credentials User is redirected back to your defined RedirectUri as a logged on User ( https://myappservice.azurewebsites.net ) For this to happen, you will need to specify in your application as AppSettings in the web.config file:   < add key ="ida:PostLogoutRedirectUri“ value =" https://myappservice.azurewebsites.net " /> < add key = "ida:RedirectUri“ value =" https://