FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Claim not present in .Net

    Scheduled Pinned Locked Moved Solved
    Q&A
    3
    3
    3.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      A Former User
      last edited by

      Hi folks,

      After FusionAuth login, I don't have role claims in the .Net Identity. I use the .Net+React POC found here
      https://github.com/FusionAuth/fusionauth-example-asp-net5-react

      This problem is similar to this post
      https://fusionauth.io/community/forum/topic/1485/role-claims-issue-with-openidconnect-netcore5
      However not exactly the same, I use both .Net and React, no razor pages. The solution of the post above doesn't work because AddOpenIdConnect ... OnMessageReceived is never called. Not sure it's normal.

      As I see things in the .Net+React POC, they handle everything in the Session, they don't get anything special in HttpContext.User.Identity , is it normal ?
      Does it mean we can't have Role Claims when using a .Net + React solution ? I would expect the JWT token to convert into a proper .Net Identity.

      If anyone can get Role Claims in the .Net+React POC, please tell how

      joshuaJ 1 Reply Last reply Reply Quote 0
      • System referenced this topic on
      • joshuaJ
        joshua @A Former User
        last edited by joshua

        @lionel-selosse addressed in a related/duplicate thread.

        https://fusionauth.io/community/forum/topic/2163/claim-not-present-in-net

        1 Reply Last reply Reply Quote 0
        • joshuaJ joshua has marked this topic as solved on
        • S
          sophiaab98
          last edited by joshua

          Claim based authorization checks are declarative - the developer embeds them within their code, against a controller or an action 192.168.l.254 within a controller, specifying claims which the current user must possess, and optionally the value the claim must hold to access the requested resource.Claims are a set of information stored in a key – value pair form. Claims are used to store information about user like full name, phone number, email address.... and the most important thing is that you can use claims as a replacement of roles, that you can transfer the roles to be a claim for a user

          1 Reply Last reply Reply Quote 0
          • First post
            Last post