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

Use AD B2C and AAD with MVC 5 Owin #86

Open smileyiori opened 1 year ago

smileyiori commented 1 year ago

Hi, my app was built using MVC 5 and Owin, we added AD B2C and AAD to it, but today we are facing issues with refresh token. I added created an issue in the Katana repository. https://github.com/aspnet/AspNetKatana/issues/512

Now we are trying to update our code to use Microsoft.Identity.Web.OWIN and see if we can have those issues with refresh token fixed. I was trying to follow this sample but I could not see how I could have configuration for both AD B2C and AAD for Web Application. I see here that is not possible to use AD B2C in Web App with Owin https://github.com/AzureAD/microsoft-identity-web/issues/2312

Do you know how I could implement it? What is the recommendation?

jennyf19 commented 1 year ago

Can you move to .NET? there we support both AAD and B2C side by side.