49284a0f11
* Implement basic access control. * Fix formatting
29 lines
619 B
TypeScript
29 lines
619 B
TypeScript
export type AccessType =
|
|
| "view-realm"
|
|
| "view-identity-providers"
|
|
| "manage-identity-providers"
|
|
| "impersonation"
|
|
| "create-client"
|
|
| "manage-users"
|
|
| "query-realms"
|
|
| "view-authorization"
|
|
| "query-clients"
|
|
| "query-users"
|
|
| "manage-events"
|
|
| "manage-realm"
|
|
| "view-events"
|
|
| "view-users"
|
|
| "view-clients"
|
|
| "manage-authorization"
|
|
| "manage-clients"
|
|
| "query-groups"
|
|
| "anyone";
|
|
|
|
export default interface WhoAmIRepresentation {
|
|
userId: string;
|
|
realm: string;
|
|
displayName: string;
|
|
locale: string;
|
|
createRealm: boolean;
|
|
realm_access: { [key: string]: AccessType[] };
|
|
}
|