Azure-Samples / ms-identity-aspnet-webapp-openidconnect

A sample showcasing how to develop a web application that handles sign on via the unified Azure AD and MSA endpoint, so that users can sign in using both their work/school account or Microsoft account. The sample also shows how to use MSAL to obtain a token for invoking the Microsoft Graph, as well as incrementental consent.
MIT License
171 stars 72 forks source link

Rewriting for ASP.NET Core: Challenge not working #3

Closed AnnejanBarelds closed 6 years ago

AnnejanBarelds commented 8 years ago

Hi,

I've been rewriting this sample for ASP.NET Core. I have most of it working, but I'm having trouble getting the challenge to work properly in HomeController.RefreshSession. I.e. when I'm logged in, I'm redirected to the Access Denied URL that is configured in the cookie middleware, instead of the auth endpoint when I issue a challenge. Seems like this behavior changed in ASP.NET Core. Any ideas on how to get this to work again?

Thanks!

jmprieur commented 6 years ago

This sample should help you: https://github.com/Azure-Samples/active-directory-dotnet-webapp-openidconnect-aspnetcore