Skip to content

Use userinfo to get scopes claims instead of token #89

@RobertRosca

Description

@RobertRosca

Recently fixed the federation to Keycloak so now our user tokens contain all the (LDAP) groups a user is a part of.

This fix revealed an issue: the token for users who are members of many groups is so large that it goes over the limit for what can be included in the HTTP headers. Not sure where exactly this limit is hit since there are a few places this may be happening. The way to deal with this would be to no longer include the claims in the token itself and instead perform queries to /userinfo to get the claims for the required scopes.

Shouldn't be a major change, just an extra query required to get the full user info which was previously encoded in the token.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions