authorizationCodeGrant

fun authorizationCodeGrant(authorizationCodeGrantConfig: AuthorizationCodeGrantDsl.() -> Unit)

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()
}
}

Parameters

authorizationCodeGrantConfig

custom configurations to configure the authorization code grant

See also