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

Authorities in permissions array from Auth0 #93

Open
JoeMcCaffrey opened this issue Sep 6, 2022 · 0 comments
Open

Authorities in permissions array from Auth0 #93

JoeMcCaffrey opened this issue Sep 6, 2022 · 0 comments

Comments

@JoeMcCaffrey
Copy link

JoeMcCaffrey commented Sep 6, 2022

Hi I have a resource server that needs to parse a permissions array in claims instead of the scope in claims:

"permissions": [
    "create:application",
    "create:client_org_user"]

How do I do that in security config? Below doesn't seem to work.

@Bean
JwtGrantedAuthoritiesConverter jwtGrantedAuthoritiesConverter() {
        JwtGrantedAuthoritiesConverter converter = new JwtGrantedAuthoritiesConverter();
        converter.setAuthoritiesClaimName("permissions");

        return converter;
    }```
    
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

1 participant