An interface that represents an authentication subject which is provided by Mosaic Admin Service in form of a JWT token. The auth library @axinom/mosaic-id-guard can be used to validate and parse the JWT token to get such a PgAuthenticatedManagementSubject, and it also provides a more fitting interface:

import { PgAuthenticatedManagementSubject } from '@axinom/mosaic-id-guard';

Hierarchy

  • PgAuthenticatedManagementSubject

Properties

environmentId: string
name: string
permissions: {
    [key: string]: string[];
}

Type declaration

  • [key: string]: string[]
sub?: string
tags?: string[]
tenantId: string

Generated using TypeDoc