Base solution for your next web application
Open Closed

Sign on with OpenID/Microsoft #6632


User avatar
0
[email protected] created

Version: 6.7, dotnet core, MVC and jQuery, multi-tenant.

I have been tasked with setting up Google and Microsoft sign-in providers with our instance of ASPNETZERO. The set up of the Google sign-in was almost trivial and we had it running in probably less than an hour. However, I have spent at 9 hours+ trying to get OpenID working with no success.

I set up the OpenID client ID in our Azuze Portal and I used the test solution found here : https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/archive/aspnetcore2-2.zip

I ran the test solution locally and everything worked ok.

But I am unable to get this working with ASPNETZERO.

I have tried numerous combination of settings, tenantID, return urls etc and the most I can get is an error coming back from the MS login that says:

https://login.live.com/err.srf?lc=2057#error=invalid_request&error_description=The+provided+value+for+the+input+parameter+'redirect_uri'+is+not+valid.+The+expected+value+is+a+URI+which+matches+a+redirect+URI+registered+for+this+client+application.

"The provided value for the input parameter 'redirect_uri' is not valid. The expected value is a URI which matches a redirect URI registered for this client application."

I would really appreciate if anyone else could share their experiences with logging into ASPZNETZERO with a Microsoft account.

Thank you in advance.


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @sduffy

    Have you configured correct reply urls on your azure account ?