fun webFilterChain(http: ServerHttpSecurity): SecurityWebFilterChain {
return http {
oauth2Login {
authenticationConverter = converter
authenticationManager = manager
authorizedClientRepository = authorizedClients
clientRegistrationRepository = clientRegistration
}
}
}
----
====
You may register a `GrantedAuthoritiesMapper` `@Bean` to have it automatically applied to the default configuration, as shown in the following example:
You may register a `GrantedAuthoritiesMapper` `@Bean` to have it automatically applied to the default configuration, as shown in the following example:
[source,java]
.GrantedAuthoritiesMapper Bean
====
.Java
[source,java,role="primary"]
----
----
@Bean
@Bean
public GrantedAuthoritiesMapper userAuthoritiesMapper() {
public GrantedAuthoritiesMapper userAuthoritiesMapper() {