Giter VIP home page Giter VIP logo

Comments (2)

jasonjoh avatar jasonjoh commented on June 3, 2024

This error is common if you register your application as a single-tenant app (choose Accounts in this organizational directory only when creating the registration). The app is written as a multi-tenant app and uses the /common authentication endpoint. (Note that the app registration instructions specify to register as multi-tenant).

For single tenant, you need to configure msal-angular to use your tenant-specific auth endpoint. You would want to add an authority value in this block:

https://github.com/microsoftgraph/msgraph-training-angularspa/blob/aca8eee8233d4088cf5d017546e0ddf082a8dabf/demo/graph-tutorial/src/app/app.module.ts#L35-L38

It would look something like:

authority: 'https://login.microsoftonline.com/YOUR_TENANT_ID'

For more info: https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/msal-angular-v1/lib/msal-angular

from msgraph-sample-angularspa.

 avatar commented on June 3, 2024

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

from msgraph-sample-angularspa.

Related Issues (11)

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.