这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Psynbiotik
Copy link
Contributor

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
@lor6 lor6 merged commit 9a75c0b into eugenp:master Apr 24, 2025
1 check passed
@lor6
Copy link
Collaborator

lor6 commented Apr 24, 2025

Thanks @Psynbiotik I'll update the article as well.

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.

2 participants