Skip to content

Fix Error when token length is too long#47

Open
dearaujoj wants to merge 1 commit intoIDCI-Consulting:masterfrom
dearaujoj:master
Open

Fix Error when token length is too long#47
dearaujoj wants to merge 1 commit intoIDCI-Consulting:masterfrom
dearaujoj:master

Conversation

@dearaujoj
Copy link

We face this issue when token length greater that 4096 because $userIdentifier length in security class UserBadge cannot be greater than MAX_USERNAME_LENGTH set to 4096.

By using the getPreferredUsername method of Keycloak we should get smaller strings contained in the claim (email or username mostly)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant