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

Have authenticationConverter use the interface AuthoritiesConverter #18418

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Psynbiotik
Copy link

The article says this:

Because of generics type erasure in the JVM and because there could be many Converter beans with different inputs and outputs in an application context, this AuthoritiesConverter interface can be a useful tip for the bean factory when it searches for a Converter<Map<String, Object>, Collection<GrantedAuthority>> bean.

Then it never uses the interface for the authenticationConverter.

Have authenticationConverter use the AuthoritiesConverter interface
Have authenticationConverter user AuthoritiesConverter
Update SecurityConfig.java
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