Coder Social home page Coder Social logo

Comments (2)

derisen avatar derisen commented on August 23, 2024

Hi @n8allan -scopes are really not the right sort of tool to use for your scenario, as you just need to restrict access to certain pages as I understand. A scope is for accessing a resource server, which is supposed to validate it and respond with some action. But client apps are not resources. So there might be a hacky way to achieve the effect you want with scopes, but this is a misuse of the protocol. I would recommend instead to look into using security groups for access control (and keep in mind, in a client side browser app, these restrictions are really just UI effects -a savy user can always find ways to access those pages). You can find a good article of how to do this with B2C here. Let me know if this helps!

from ms-identity-javascript-angular-tutorial.

derisen avatar derisen commented on August 23, 2024

Closing due to inactivity. Let us know if you have further questions.

from ms-identity-javascript-angular-tutorial.

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.