Add scouthub-home-be
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
export async function assignRealmRoleToUser(userId: string, ruolo: string): Promise<void> {
|
||||
// TODO: POST {adminBaseUrl}/users/{userId}/role-mappings/realm con il
|
||||
// rappresentante del ruolo (richiede prima GET {adminBaseUrl}/roles/{ruolo}
|
||||
// per ottenerne id e name).
|
||||
throw new Error('Not implemented');
|
||||
}
|
||||
|
||||
export async function removeRealmRoleFromUser(userId: string, ruolo: string): Promise<void> {
|
||||
// TODO: DELETE {adminBaseUrl}/users/{userId}/role-mappings/realm con il
|
||||
// rappresentante del ruolo.
|
||||
throw new Error('Not implemented');
|
||||
}
|
||||
|
||||
export async function getUserRealmRoles(userId: string): Promise<string[]> {
|
||||
// TODO: GET {adminBaseUrl}/users/{userId}/role-mappings/realm. Il contratto
|
||||
// di questa funzione è di restituire solo i ruoli scout "custom" (es. le
|
||||
// voci di ruoliDefault create in POST /gruppi), escludendo i ruoli di
|
||||
// default di Keycloak (offline_access, uma_authorization, ecc.).
|
||||
throw new Error('Not implemented');
|
||||
}
|
||||
Reference in New Issue
Block a user