ModelixAuthorizationConfig

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override var debugEndpointsEnabled: Boolean

/user will show the content of the JWT token /permissions will show all available permissions that can be used when generating a token.

Link copied to clipboard
open override var generateFakeTokens: Boolean?

A JWT principal will be available, even if the HTTP request doesn't contain one.

Link copied to clipboard
open override var hmac256Key: String?

The pre-shared key for the HMAC256 signature algorithm. The environment variables MODELIX_JWT_SIGNATURE_HMAC256_KEY or MODELIX_JWT_SIGNATURE_HMAC256_KEY_FILE can be used instead.

Link copied to clipboard
open override var hmac384Key: String?

The pre-shared key for the HMAC384 signature algorithm. The environment variables MODELIX_JWT_SIGNATURE_HMAC384_KEY or MODELIX_JWT_SIGNATURE_HMAC384_KEY_FILE can be used instead.

Link copied to clipboard
open override var hmac512Key: String?

The pre-shared key for the HMAC512 signature algorithm. The environment variables MODELIX_JWT_SIGNATURE_HMAC512_KEY or MODELIX_JWT_SIGNATURE_HMAC512_KEY_FILE can be used instead.

Link copied to clipboard
open override var jwkKeyId: String?

The ID of the public key for the RSA signature.

Link copied to clipboard
open override var jwkUri: URI?

If RSA signatures a used, the public key will be downloaded from this registry.

Link copied to clipboard
open override var permissionChecksEnabled: Boolean?

If not explicitly enabled or disabled, permissions are check if an algorithm for the JWT signature is configured.

Link copied to clipboard
open override var permissionSchema: Schema

Defines the available permissions and their relations.

Functions

Link copied to clipboard
open override fun configureForUnitTests()

Generates fake tokens and allows all requests.

Link copied to clipboard
fun getJwkProvider(): JwkProvider?
Link copied to clipboard
fun getJwtSignatureAlgorithm(): Algorithm
Link copied to clipboard
Link copied to clipboard
fun nullIfInvalid(token: DecodedJWT): DecodedJWT?
Link copied to clipboard
fun verifyTokenSignature(token: DecodedJWT)