Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extracting Custom Attributes #26

Open
WillieSpence opened this issue Sep 2, 2024 · 2 comments
Open

Extracting Custom Attributes #26

WillieSpence opened this issue Sep 2, 2024 · 2 comments

Comments

@WillieSpence
Copy link

Hi,

Do you have any examples of extracting custom attributes / claims from the JWT? I have custom attributes that I have added for my user and I can confirm with jwt.io that the additional user attribute is in the token. However, it doesn't seem to decode this attribute when I use the keycloak auth layer.

@Tockra
Copy link
Contributor

Tockra commented Sep 25, 2024

I'm not 100% sure, but maybe you can change the type of "Extra" to your expected data and then you could get the data?:
https://docs.rs/axum-keycloak-auth/0.6.0/axum_keycloak_auth/decode/struct.KeycloakToken.html

@Tockra
Copy link
Contributor

Tockra commented Sep 30, 2024

See #1

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

No branches or pull requests

2 participants