mirror of
https://github.com/keycloak/keycloak.git
synced 2025-12-21 06:20:05 -06:00
Closes #27444
Signed-off-by: Simon Hanna <simon.hanna@aeb.com>
(cherry picked from commit 401e1bd636)
Co-authored-by: Simon Hanna <33220646+simhnna@users.noreply.github.com>
This commit is contained in:
@@ -34,10 +34,10 @@ export default function CreateClientRole() {
|
|||||||
...role,
|
...role,
|
||||||
});
|
});
|
||||||
|
|
||||||
const createdRole = await adminClient.clients.findRole({
|
const createdRole = (await adminClient.clients.findRole({
|
||||||
id: clientId!,
|
id: clientId!,
|
||||||
roleName: role.name!,
|
roleName: role.name!,
|
||||||
});
|
}))!;
|
||||||
|
|
||||||
addAlert(t("roleCreated"), AlertVariant.success);
|
addAlert(t("roleCreated"), AlertVariant.success);
|
||||||
navigate(
|
navigate(
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ export class Clients extends Resource<{ realm?: string }> {
|
|||||||
|
|
||||||
public findRole = this.makeRequest<
|
public findRole = this.makeRequest<
|
||||||
{ id: string; roleName: string },
|
{ id: string; roleName: string },
|
||||||
RoleRepresentation
|
RoleRepresentation | null
|
||||||
>({
|
>({
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: "/{id}/roles/{roleName}",
|
path: "/{id}/roles/{roleName}",
|
||||||
|
|||||||
Reference in New Issue
Block a user