IModelixAuthorizationConfig

Reduced interface exposed to users of the plugin.

Inheritors

Properties

Link copied to clipboard

/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

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

Link copied to clipboard
abstract 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
abstract 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
abstract 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
abstract var jwkKeyId: String?

The ID of the public key for the RSA signature.

Link copied to clipboard
abstract var jwkUri: URI?

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

Link copied to clipboard

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

Link copied to clipboard
abstract var permissionSchema: Schema

Defines the available permissions and their relations.

Functions

Link copied to clipboard
abstract fun configureForUnitTests()

Generates fake tokens and allows all requests.