mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-10 15:32:05 -03:30
Fix on type for KeycloakInstance.realmAccess and KeycloakInstance.ressourceAccess
This commit is contained in:
parent
044926225f
commit
68873c29b7
@ -226,6 +226,14 @@ declare namespace Keycloak {
|
||||
resource_access?: string[];
|
||||
}
|
||||
|
||||
interface KeycloakResourceAccess {
|
||||
[key: string]: KeycloakRoles
|
||||
}
|
||||
|
||||
interface KeycloakRoles {
|
||||
roles: string[];
|
||||
}
|
||||
|
||||
// export interface KeycloakUserInfo {}
|
||||
|
||||
/**
|
||||
@ -263,12 +271,12 @@ declare namespace Keycloak {
|
||||
/**
|
||||
* The realm roles associated with the token.
|
||||
*/
|
||||
realmAccess?: { roles: string[] };
|
||||
realmAccess?: KeycloakRoles;
|
||||
|
||||
/**
|
||||
* The resource roles associated with the token.
|
||||
*/
|
||||
resourceAccess?: string[];
|
||||
resourceAccess?: KeycloakResourceAccess;
|
||||
|
||||
/**
|
||||
* The base64 encoded token that can be sent in the Authorization header in
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user