JwtAuthModelArgs

data class JwtAuthModelArgs(val headers: Output<Map<String, String>>? = null, val isCredentialsInHeaders: Output<Boolean>? = null, val isJsonRequest: Output<Boolean>? = null, val password: Output<Map<String, String>>, val queryParameters: Output<Map<String, String>>? = null, val requestTimeoutInSeconds: Output<Int>? = null, val tokenEndpoint: Output<String>, val type: Output<String>, val userName: Output<Map<String, String>>) : ConvertibleToJava<JwtAuthModelArgs>

Model for API authentication with JWT. Simple exchange between user name + password to access token.

Constructors

Link copied to clipboard
constructor(headers: Output<Map<String, String>>? = null, isCredentialsInHeaders: Output<Boolean>? = null, isJsonRequest: Output<Boolean>? = null, password: Output<Map<String, String>>, queryParameters: Output<Map<String, String>>? = null, requestTimeoutInSeconds: Output<Int>? = null, tokenEndpoint: Output<String>, type: Output<String>, userName: Output<Map<String, String>>)

Properties

Link copied to clipboard
val headers: Output<Map<String, String>>? = null

The custom headers we want to add once we send request to token endpoint.

Link copied to clipboard
val isCredentialsInHeaders: Output<Boolean>? = null

Flag indicating whether we want to send the user name and password to token endpoint in the headers.

Link copied to clipboard
val isJsonRequest: Output<Boolean>? = null

Flag indicating whether the body request is JSON (header Content-Type = application/json), meaning its a Form URL encoded request (header Content-Type = application/x-www-form-urlencoded).

Link copied to clipboard
val password: Output<Map<String, String>>

The password

Link copied to clipboard
val queryParameters: Output<Map<String, String>>? = null

The custom query parameter we want to add once we send request to token endpoint.

Link copied to clipboard
val requestTimeoutInSeconds: Output<Int>? = null

Request timeout in seconds.

Link copied to clipboard
val tokenEndpoint: Output<String>

Token endpoint to request JWT

Link copied to clipboard
val type: Output<String>

Type of paging Expected value is 'JwtToken'.

Link copied to clipboard
val userName: Output<Map<String, String>>

The user name. If user name and password sent in header request we only need to populate the value property with the user name (Same as basic auth). If user name and password sent in body request we need to specify the Key and Value.

Functions

Link copied to clipboard
open override fun toJava(): JwtAuthModelArgs