authorizationCodeGrant
Configures the OAuth 2.0 Authorization Code Grant.
Example:
@Configuration
@EnableWebSecurity
class SecurityConfig {
@Bean
fun securityFilterChain(http: HttpSecurity): SecurityFilterChain {
http {
oauth2Client {
authorizationCodeGrant {
authorizationRequestResolver = getAuthorizationRequestResolver()
}
}
}
return http.build()
}
}Content copied to clipboard
Parameters
authorizationCodeGrantConfig
custom configurations to configure the authorization code grant