userInfoEndpoint

fun userInfoEndpoint(userInfoEndpointConfig: UserInfoEndpointDsl.() -> Unit)

Configures the Authorization Server's UserInfo Endpoint.

Example:

@Configuration
@EnableWebSecurity
class SecurityConfig {

@Bean
fun securityFilterChain(http: HttpSecurity): SecurityFilterChain {
http {
oauth2Login {
userInfoEndpoint {
userService = getUserService()
}
}
}
return http.build()
}
}

Parameters

userInfoEndpointConfig

custom configurations to configure the user info endpoint

See also