JwtLocationResponse

data class JwtLocationResponse(val cookie: String, val header: String, val query: String, val valuePrefix: String)

Specifies a location to extract JWT from an API request.

Constructors

Link copied to clipboard
fun JwtLocationResponse(cookie: String, header: String, query: String, valuePrefix: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Specifies cookie name to extract JWT token.

Link copied to clipboard

Specifies HTTP header name to extract JWT token.

Link copied to clipboard

Specifies URL query parameter name to extract JWT token.

Link copied to clipboard

The value prefix. The value format is "value_prefix{token}" Only applies to "in" header type. Must be empty for "in" query type. If not empty, the header value has to match (case sensitive) this prefix. If not matched, JWT will not be extracted. If matched, JWT will be extracted after the prefix is removed. For example, for "Authorization: Bearer {JWT}", value_prefix="Bearer " with a space at the end.