OAuth2ResourceServerDsl

A Kotlin DSL to configure HttpSecurity OAuth 2.0 resource server support using idiomatic Kotlin code.

Author

Eleftheria Stein

Max Batischev

Since

5.3

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var accessDeniedHandler: AccessDeniedHandler?

the AccessDeniedHandler to use for requests authenticating with Bearer Tokens.

Link copied to clipboard
var authenticationEntryPoint: AuthenticationEntryPoint?

the AuthenticationEntryPoint to use for requests authenticating with Bearer Tokens.

Link copied to clipboard
var authenticationManagerResolver: AuthenticationManagerResolver<HttpServletRequest>?
Link copied to clipboard
var bearerTokenResolver: BearerTokenResolver?

the BearerTokenResolver to use for requests authenticating with Bearer Tokens.

Functions

Link copied to clipboard
fun dPoP(dPoPConfig: DPoPDsl.() -> Unit)

Enables DPoP-bound access token support.

Link copied to clipboard
fun jwt(jwtConfig: JwtDsl.() -> Unit)

Enables JWT-encoded bearer token support.

Link copied to clipboard
fun opaqueToken(opaqueTokenConfig: OpaqueTokenDsl.() -> Unit)

Enables opaque token support.