tokenEndpoint

fun tokenEndpoint(tokenEndpointConfig: TokenEndpointDsl.() -> Unit)

Configures the Authorization Server's Token Endpoint.

Example:

@Configuration
@EnableWebSecurity
class SecurityConfig {

@Bean
fun securityFilterChain(http: HttpSecurity): SecurityFilterChain {
http {
oauth2Login {
tokenEndpoint {
accessTokenResponseClient = getAccessTokenResponseClient()
}
}
}
return http.build()
}
}

Parameters

tokenEndpointConfig

custom configurations to configure the token endpoint

See also