FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. lou
    L
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Controversial 0
    • Groups 0

    lou

    @lou

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Location Austin, TX

    lou Unfollow Follow

    Latest posts made by lou

    • Roles don't update on refresh

      When a user logs on we get a refresh token and access token. The JWT has the roles in the object like this:

      {
          ...
          roles: [
              "role_foo",
              "role_bar"
          ]
      }
      

      These roles are inherited from the group and assigned during that initial login when it creates an active session.

      Say a user logs in and creates this session and we update their group roles to be:

      {
          ...
          roles: [
              "role_foo",
              "role_bar",
              "role_baz"
          ]
      }
      

      We should expect this to be the roles when a user creates a fresh session by logging in or when the user follows the refresh flow to get a new access_token. However, when a user uses a valid refresh_token the returned access_token from this refresh flow still matches the original session's grants:

      {
          ...
          roles: [
              "role_foo",
              "role_bar"
          ]
      }
      

      Am I misconfiguring something so that it gets the most up to date roles on refresh?

      posted in Q&A
      L
      lou