CookieTokenAuthFilter

@Priority(value = 1000)
class CookieTokenAuthFilter<P : Principal>(val cookieName: String) : AuthFilter<String?, P>

AuthFilter that reads a token value out of a cookie and authenticates against the Authenticator / Authorizers that are configured through the Builder

Constructors

Link copied to clipboard
constructor(cookieName: String)

Types

Link copied to clipboard
class Builder<P : Principal>(val cookieName: String) : AuthFilter.AuthFilterBuilder<String?, P, CookieTokenAuthFilter<P>>

Builder for CookieTokenAuthFilter. The user must specify a cookieName to read the token from to begin the building process. The user must provide an Authenticator to authenticate the cookie and return a Principal that corresponds to the cookie token value during the building process.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun filter(requestContext: ContainerRequestContext)