Authorizer

A class that provides authorization functionality using a policy enforcement provider and a Heimdall client.

Constructors

Link copied to clipboard
constructor(pep: PolicyEnforcementProvider, client: HeimdallClient, userAgent: String)

Functions

Link copied to clipboard
fun authorize(token: String, correlationId: String): AuthorizationResponse

Authorizes an access token using the Heimdall client's authorization API.

Authorizes a token for a batch of atoms and returns the AuthorizationResponseBatch.

fun authorize(token: String, atomId: String, variableValues: Map<String, String>?, correlationId: String): AuthorizationResponse

Authorizes an access token for a specific atom using the Heimdall client's authorization API.