keycloak-scim/src/context/whoami/who-am-i-model.ts
Stan Silvert 49284a0f11
Implement basic access control. (#183)
* Implement basic access control.

* Fix formatting
2020-10-21 07:31:41 -04:00

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[] };
}