GithubHelp home page GithubHelp logo

Comments (6)

RolandLeFranc avatar RolandLeFranc commented on August 23, 2024

I had to add http://localhost:55643/signin-oidc to the list of Reply URLS in the Azure AAD settings.

from active-directory-dotnet-webapp-openidconnect-aspnetcore.

jmprieur avatar jmprieur commented on August 23, 2024

I understand that IIS Express ran the sample from localhost:55643 and not localhost:5000 as explained in the Readme.md. See step 1.5.
Now why was the sample run from a different base URL? did you change it, @RolandLeFranc ?

from active-directory-dotnet-webapp-openidconnect-aspnetcore.

RolandLeFranc avatar RolandLeFranc commented on August 23, 2024

It's not about the port being different. The step is missing in the doc.

from active-directory-dotnet-webapp-openidconnect-aspnetcore.

jmprieur avatar jmprieur commented on August 23, 2024

Do you want something else than step 1.5 ?

from active-directory-dotnet-webapp-openidconnect-aspnetcore.

taggie05 avatar taggie05 commented on August 23, 2024

We had the same issue we had to add localhost to the reply url. Why exactly is a localhost url needed in a reply url in Azure Registered App ? I want to understand why we need to input a localhost url and why the error: AADSTS50011 is occurring without it.

from active-directory-dotnet-webapp-openidconnect-aspnetcore.

jmprieur avatar jmprieur commented on August 23, 2024

@taggie05 : what happens is that the authentication is delegated to Azure Active Directory, which let the user enter the credentials, do the multi-factor authentication (if needed) and other conditional access, requests consent from the user (if needed), and then calls back the application at the Reply URL with the access token (or, in this case, a code that can be redeemed to get an access token).
As long as you are running the Web app in a local browser, you need this Reply URL.
When you deploy it to Azure (for instance), you'll need to update the Reply URLs in the application registration.

from active-directory-dotnet-webapp-openidconnect-aspnetcore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.