Giter VIP home page Giter VIP logo

Comments (2)

tuxiem avatar tuxiem commented on June 1, 2024

Have you tried to look at the JWT?
Use jwt.io to debug, there are comments in the code you need to uncomment and insert a breakpoint.

If that doesn't point you in the right direction I need more info on your setup.
Screenshots or code dumps.

from aspnetcore-keycloak.

pgrondin27 avatar pgrondin27 commented on June 1, 2024

@DejanPopovic1 I just submitted a PR (#8) to make debugging roles a bit easier. Check the following files.

  • HomeController.cs : Set AuthenticationAsync requirement to Authorize. Does not depend on role anymore to allow you to see the User page.
  • Authentication.cshtml : Add list of of UserRoles extracted from Keycloak/OpenId handshake in the User page.
    Hope this helps.

from aspnetcore-keycloak.

Related Issues (5)

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.