Interface Authorization

Represents authorization information for a user.

interface Authorization {
    capacity?: EntityCode;
    loginHint?: string;
    mandateGiver?:
        | Entity
        | {
            firstName?: string;
            identifier: string;
            name: string;
            type: "organisation"
            | "person";
        };
    onBehalfOf?: | Entity
    | { identifier: string; name: string; type: "organisation" };
}

Properties

capacity?: EntityCode

The capacity of the user: the role the application sees. When the capacity is 'EA', an onBehalfOf must be provided as well.

loginHint?: string

A base64-encoded string representing a login hint. In case of ACM,

mandateGiver?:
    | Entity
    | {
        firstName?: string;
        identifier: string;
        name: string;
        type: "organisation"
        | "person";
    }

The mandate giver, which could be just the name of the mandate giver.

onBehalfOf?: Entity | { identifier: string; name: string; type: "organisation" }

The entity on behalf of which the user is acting, if applicable.