authorize

fun authorize(token: String, correlationId: String): AuthorizationResponse

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

Return

An AuthorizationResponse object containing the result of the authorization request.

Parameters

token

The access token to authorize.

correlationId

The correlation ID for the authorization request.


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.

Return

An AuthorizationResponse object containing the result of the authorization request.

Parameters

token

The access token to authorize.

atomId

The ID of the atom to authorize the token for.

variableValues

A map of variable names to values used to resolve the atom's inputs.

correlationId

The correlation ID for the authorization request.


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

Return

the AuthorizationResponseBatch for the given token and batch of atoms.

Parameters

token

the token to authorize.

batch

a map of atom IDs to tuples of atom ID, variable values, and correlation ID.

correlationId

the correlation ID to include in the authorization request.