diff --git a/README.md b/README.md index 5def0d6..b409a53 100644 --- a/README.md +++ b/README.md @@ -41,9 +41,9 @@ Features: 3. No need to specify any urls other than the base uri 4. No encode/decode for json just data as you expect -works with Keycloak 7.0 admin rest api +Works with Keycloak 7.0+ admin REST API. -https://www.keycloak.org/docs-api/7.0/rest-api/index.html +https://www.keycloak.org/documentation -> "Administration REST API" # How to use @@ -60,6 +60,8 @@ $client = Keycloak\Admin\KeycloakClient::factory([ ]); ``` +Since version 0.30, if your Keycloak base URL starts with `auth/`, add it to `baseUri` (e.g. http://127.0.0.1:8180/auth). Base URL for Keycloak versions 7 to 16 have systematically `auth/`. On Keycloak 17+ it depends on your settings. + #### 2. Use it diff --git a/src/Admin/Middleware/RefreshToken.php b/src/Admin/Middleware/RefreshToken.php index d5e538f..1d5ab85 100644 --- a/src/Admin/Middleware/RefreshToken.php +++ b/src/Admin/Middleware/RefreshToken.php @@ -116,7 +116,7 @@ public function getAccessToken($credentials, $refresh, $options) return new RejectedPromise("cannot refresh token when the 'refresh_token' is missing"); } - $url = "auth/realms/{$options['realm']}/protocol/openid-connect/token"; + $url = "realms/{$options['realm']}/protocol/openid-connect/token"; $clientId = $options["client_id"] ?? "admin-cli"; $grantType = $refresh ? "refresh_token" : ($options["grant_type"] ?? "password"); $params = [ diff --git a/src/Admin/Resources/keycloak-1_0.php b/src/Admin/Resources/keycloak-1_0.php index 98782ad..3fe7950 100644 --- a/src/Admin/Resources/keycloak-1_0.php +++ b/src/Admin/Resources/keycloak-1_0.php @@ -11,7 +11,7 @@ // Attack Detection 'clearAllLoginFailures' => array( - 'uri' => 'auth/admin/realms/{realm}/attack-detection/brute-force/users', + 'uri' => 'admin/realms/{realm}/attack-detection/brute-force/users', 'description' => 'Clear any user login failures for all users This can release temporary disabled users', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -25,7 +25,7 @@ ), 'getBruteForceUserStatus' => array( - 'uri' => 'auth/admin/realms/{realm}/attack-detection/brute-force/users/{userId}', + 'uri' => 'admin/realms/{realm}/attack-detection/brute-force/users/{userId}', 'description' => 'Get status of a username in brute force detection', 'httpMethod' => 'GET', 'parameters' => array( @@ -45,7 +45,7 @@ ), 'clearUserLoginFailures' => array( - 'uri' => 'auth/admin/realms/{realm}/attack-detection/brute-force/users/{userId}', + 'uri' => 'admin/realms/{realm}/attack-detection/brute-force/users/{userId}', 'description' => 'Clear any user login failures for the user This can release temporary disabled user', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -67,7 +67,7 @@ // Authentication Management 'getAuthenticatorProviders' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/authenticator-providers', + 'uri' => 'admin/realms/{realm}/authentication/authenticator-providers', 'description' => 'Get authenticator providers Returns a list of authenticator providers.', 'httpMethod' => 'GET', 'parameters' => array( @@ -81,7 +81,7 @@ ), 'getClientAuthenticatorProviders' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/client-authenticator-providers', + 'uri' => 'admin/realms/{realm}/authentication/client-authenticator-providers', 'description' => 'Get client authenticator providers Returns a list of client authenticator providers.', 'httpMethod' => 'GET', 'parameters' => array( @@ -95,7 +95,7 @@ ), 'getAuthenticatorConfigInfo' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/config-description/{providerId}', + 'uri' => 'admin/realms/{realm}/authentication/config-description/{providerId}', 'description' => 'Get authenticator provider’s configuration description', 'httpMethod' => 'GET', 'parameters' => array( @@ -115,7 +115,7 @@ ), 'getAuthenticatorConfig' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/config/{id}', + 'uri' => 'admin/realms/{realm}/authentication/config/{id}', 'description' => 'Get authenticator configuration', 'httpMethod' => 'GET', 'parameters' => array( @@ -135,7 +135,7 @@ ), 'updateAuthenticatorConfig' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/config/{id}', + 'uri' => 'admin/realms/{realm}/authentication/config/{id}', 'description' => 'Update authenticator configuration', 'httpMethod' => 'PUT', 'parameters' => array( @@ -155,7 +155,7 @@ ), 'deleteAuthenticatorConfig' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/config/{id}', + 'uri' => 'admin/realms/{realm}/authentication/config/{id}', 'description' => 'Delete authenticator configuration', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -175,7 +175,7 @@ ), 'createAuthenticationExecution' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/executions', + 'uri' => 'admin/realms/{realm}/authentication/executions', 'description' => 'Add new authentication execution', 'httpMethod' => 'POST', 'parameters' => array( @@ -189,7 +189,7 @@ ), 'getAuthenticationExecution' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/executions/{executionId}', + 'uri' => 'admin/realms/{realm}/authentication/executions/{executionId}', 'description' => 'Get Single Execution', 'httpMethod' => 'GET', 'parameters' => array( @@ -209,7 +209,7 @@ ), 'deleteAuthenticationExecution' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/executions/{executionId}', + 'uri' => 'admin/realms/{realm}/authentication/executions/{executionId}', 'description' => 'Delete execution', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -229,7 +229,7 @@ ), 'updateAuthenticationExecution' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/executions/{executionId}', + 'uri' => 'admin/realms/{realm}/authentication/executions/{executionId}', 'description' => 'Update execution with new configuration', 'httpMethod' => 'POST', 'parameters' => array( @@ -249,7 +249,7 @@ ), 'lowerAuthenticationExecutionPriority' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/executions/{executionId}/lower-priority', + 'uri' => 'admin/realms/{realm}/authentication/executions/{executionId}/lower-priority', 'description' => 'Lower execution’s priority', 'httpMethod' => 'POST', 'parameters' => array( @@ -269,7 +269,7 @@ ), 'raiseAuthenticationExecutionPriority' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/executions/{executionId}/raise-priority', + 'uri' => 'admin/realms/{realm}/authentication/executions/{executionId}/raise-priority', 'description' => 'Raise execution’s priority', 'httpMethod' => 'POST', 'parameters' => array( @@ -289,7 +289,7 @@ ), 'createAuthenticationFlow' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/flows', + 'uri' => 'admin/realms/{realm}/authentication/flows', 'description' => 'Create a new authentication flow', 'httpMethod' => 'POST', 'parameters' => array( @@ -303,7 +303,7 @@ ), 'getAuthenticationFlows' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/flows', + 'uri' => 'admin/realms/{realm}/authentication/flows', 'description' => 'Get authentication flows Returns a list of authentication flows.', 'httpMethod' => 'GET', 'parameters' => array( @@ -317,7 +317,7 @@ ), 'copyAuthenticationFlow' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/flows/{flowAlias}/copy', + 'uri' => 'admin/realms/{realm}/authentication/flows/{flowAlias}/copy', 'description' => "Copy existing authentication flow under a new name The new name is given as 'newName' attribute of the passed JSON object", 'httpMethod' => 'POST', 'parameters' => array( @@ -343,7 +343,7 @@ ), 'getAuthenticationFlowExecutions' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/flows/{flowAlias}/executions', + 'uri' => 'admin/realms/{realm}/authentication/flows/{flowAlias}/executions', 'description' => 'Get authentication executions for a flow', 'httpMethod' => 'GET', 'parameters' => array( @@ -363,7 +363,7 @@ ), 'updateAuthenticationFlowExecutions' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/flows/{flowAlias}/executions', + 'uri' => 'admin/realms/{realm}/authentication/flows/{flowAlias}/executions', 'description' => 'Update authentication executions for a flow', 'httpMethod' => 'PUT', 'parameters' => array( @@ -383,7 +383,7 @@ ), 'createAuthenticationFlowExecution' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/flows/{flowAlias}/executions/execution', + 'uri' => 'admin/realms/{realm}/authentication/flows/{flowAlias}/executions/execution', 'description' => 'Add new authentication execution to a flow', 'httpMethod' => 'POST', 'parameters' => array( @@ -410,7 +410,7 @@ //I really don't know how this works, but it works 'addAuthenticationFlowExecution' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/flows/{flowAlias}/executions/flow', + 'uri' => 'admin/realms/{realm}/authentication/flows/{flowAlias}/executions/flow', 'description' => 'Add new flow with new execution to existing flow', 'httpMethod' => 'POST', 'parameters' => array( @@ -454,7 +454,7 @@ ), 'getAuthenticationFlow' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/flows/{id}', + 'uri' => 'admin/realms/{realm}/authentication/flows/{id}', 'description' => 'Get authentication flow for id', 'httpMethod' => 'GET', 'parameters' => array( @@ -475,7 +475,7 @@ // Keycloak gives an error when calling this api even when it's working fine 'updateAuthenticationFlow' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/flows/{id}', + 'uri' => 'admin/realms/{realm}/authentication/flows/{id}', 'description' => 'Update authentication flow for id', 'httpMethod' => 'PUT', 'parameters' => array( @@ -495,7 +495,7 @@ ), 'deleteAuthenticationFlow' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/flows/{id}', + 'uri' => 'admin/realms/{realm}/authentication/flows/{id}', 'description' => 'Delete an authentication flow', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -515,7 +515,7 @@ ), 'getFormActionProviders' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/form-action-providers', + 'uri' => 'admin/realms/{realm}/authentication/form-action-providers', 'description' => 'Get form action providers Returns a list of form action providers.', 'httpMethod' => 'GET', 'parameters' => array( @@ -529,7 +529,7 @@ ), 'getFormProviders' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/form-providers', + 'uri' => 'admin/realms/{realm}/authentication/form-providers', 'description' => 'Get form providers Returns a list of form providers.', 'httpMethod' => 'GET', 'parameters' => array( @@ -543,7 +543,7 @@ ), 'getClientsConfigDescriptions' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/per-client-config-description', + 'uri' => 'admin/realms/{realm}/authentication/per-client-config-description', 'description' => 'Get configuration descriptions for all clients', 'httpMethod' => 'GET', 'parameters' => array( @@ -558,7 +558,7 @@ //If used incorrectly can break login, ok it can break even other apis be careful when using it 'createRequiredAction' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/register-required-action', + 'uri' => 'admin/realms/{realm}/authentication/register-required-action', 'description' => 'Register a new required actions', 'httpMethod' => 'POST', 'parameters' => array( @@ -584,7 +584,7 @@ ), 'getRequiredActions' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/required-actions', + 'uri' => 'admin/realms/{realm}/authentication/required-actions', 'description' => 'Get required actions Returns a list of required actions.', 'httpMethod' => 'GET', 'parameters' => array( @@ -598,7 +598,7 @@ ), 'getAliasRequiredAction' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/required-actions/{alias}', + 'uri' => 'admin/realms/{realm}/authentication/required-actions/{alias}', 'description' => 'Get required action for alias', 'httpMethod' => 'GET', 'parameters' => array( @@ -618,7 +618,7 @@ ), 'updateRequiredAction' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/required-actions/{alias}', + 'uri' => 'admin/realms/{realm}/authentication/required-actions/{alias}', 'description' => 'Update required action', 'httpMethod' => 'PUT', 'parameters' => array( @@ -638,7 +638,7 @@ ), 'deleteRequiredAction' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/required-actions/{alias}', + 'uri' => 'admin/realms/{realm}/authentication/required-actions/{alias}', 'description' => 'Delete required action', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -658,7 +658,7 @@ ), 'lowerRequiredActionPriority' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/required-actions/{alias}/lower-priority', + 'uri' => 'admin/realms/{realm}/authentication/required-actions/{alias}/lower-priority', 'description' => 'Lower required action’s priority', 'httpMethod' => 'POST', 'parameters' => array( @@ -678,7 +678,7 @@ ), 'raiseRequiredActionPriority' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/required-actions/{alias}/raise-priority', + 'uri' => 'admin/realms/{realm}/authentication/required-actions/{alias}/raise-priority', 'description' => 'Raise required action’s priority', 'httpMethod' => 'POST', 'parameters' => array( @@ -698,7 +698,7 @@ ), 'getUnregisteredRequiredActions' => array( - 'uri' => 'auth/admin/realms/{realm}/authentication/unregistered-required-actions', + 'uri' => 'admin/realms/{realm}/authentication/unregistered-required-actions', 'description' => 'Get unregistered required actions Returns a list of unregistered required actions.', 'httpMethod' => 'GET', 'parameters' => array( @@ -714,7 +714,7 @@ // Client Attribute Certificate 'getClientKeyInfo' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/certificates/{attr}', + 'uri' => 'admin/realms/{realm}/clients/{id}/certificates/{attr}', 'description' => 'Get key info', 'httpMethod' => 'GET', 'parameters' => array( @@ -740,7 +740,7 @@ ), 'getClientKeyStore' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/certificates/{attr}/download', + 'uri' => 'admin/realms/{realm}/clients/{id}/certificates/{attr}/download', 'description' => 'Get a keystore file for the client, containing private key and public certificate', 'httpMethod' => 'POST', 'parameters' => array( @@ -766,7 +766,7 @@ ), 'generateClientCertificate' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/certificates/{attr}/generate', + 'uri' => 'admin/realms/{realm}/clients/{id}/certificates/{attr}/generate', 'description' => 'Generate a new certificate with new key pair', 'httpMethod' => 'POST', 'parameters' => array( @@ -792,7 +792,7 @@ ), 'generateDownloadClientCertificate' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/certificates/{attr}/generate-and-download', + 'uri' => 'admin/realms/{realm}/clients/{id}/certificates/{attr}/generate-and-download', 'description' => 'Generate a new keypair and certificate, and get the private key file Generates a keypair and certificate and serves the private key in a specified keystore format.', 'httpMethod' => 'POST', 'parameters' => array( @@ -819,7 +819,7 @@ // need to tell Keycloak team about this, it's not mentioned in the documentation 'uploadClientCertificateAndPrivateKey' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/certificates/{attr}/upload', + 'uri' => 'admin/realms/{realm}/clients/{id}/certificates/{attr}/upload', 'description' => 'Upload certificate and eventually private key', 'httpMethod' => 'POST', 'parameters' => array( @@ -875,7 +875,7 @@ // need to tell Keycloak team about this, it's not mentioned in the documentation 'uploadClientCertificateOnly' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/certificates/{attr}/upload-certificate', + 'uri' => 'admin/realms/{realm}/clients/{id}/certificates/{attr}/upload-certificate', 'description' => 'Upload only certificate, not private key', 'httpMethod' => 'POST', 'parameters' => array( @@ -932,7 +932,7 @@ // Client Initial Access 'createClientInitialAccessToken' => array( - 'uri' => 'auth/admin/realms/{realm}/clients-initial-access', + 'uri' => 'admin/realms/{realm}/clients-initial-access', 'description' => 'Create a new initial access token.', 'httpMethod' => 'POST', 'parameters' => array( @@ -946,7 +946,7 @@ ), 'getClientInitialAccessTokens' => array( - 'uri' => 'auth/admin/realms/{realm}/clients-initial-access', + 'uri' => 'admin/realms/{realm}/clients-initial-access', 'description' => 'Get client initial access tokens.', 'httpMethod' => 'GET', 'parameters' => array( @@ -960,7 +960,7 @@ ), 'deleteClientInitialAccessToken' => array( - 'uri' => 'auth/admin/realms/{realm}/clients-initial-access/{id}', + 'uri' => 'admin/realms/{realm}/clients-initial-access/{id}', 'description' => 'Delete client initial access token.', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -982,7 +982,7 @@ // Client Registration Policy 'getClientRegistrationPolicyProviders' => array( - 'uri' => 'auth/admin/realms/{realm}/client-registration-policy/providers', + 'uri' => 'admin/realms/{realm}/client-registration-policy/providers', 'description' => 'Base path for retrieve providers with the configProperties properly filled', 'httpMethod' => 'GET', 'parameters' => array( @@ -998,7 +998,7 @@ // Client Role Mappings 'addGroupClientRoleMappings' => array( - 'uri' => 'auth/admin/realms/{realm}/groups/{id}/role-mappings/clients/{client}', + 'uri' => 'admin/realms/{realm}/groups/{id}/role-mappings/clients/{client}', 'description' => 'Add client-level roles to the group role mapping', 'httpMethod' => 'POST', 'parameters' => array( @@ -1032,7 +1032,7 @@ ), 'getGroupClientRoleMappings' => array( - 'uri' => 'auth/admin/realms/{realm}/groups/{id}/role-mappings/clients/{client}', + 'uri' => 'admin/realms/{realm}/groups/{id}/role-mappings/clients/{client}', 'description' => 'Get client-level role mappings for the group, and the app', 'httpMethod' => 'GET', 'parameters' => array( @@ -1058,7 +1058,7 @@ ), 'deleteGroupClientRoleMappings' => array( - 'uri' => 'auth/admin/realms/{realm}/groups/{id}/role-mappings/clients/{client}', + 'uri' => 'admin/realms/{realm}/groups/{id}/role-mappings/clients/{client}', 'description' => 'Delete client-level roles from group role mapping', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -1092,7 +1092,7 @@ ), 'getAvailableGroupClientRoleMappings' => array( - 'uri' => 'auth/admin/realms/{realm}/groups/{id}/role-mappings/clients/{client}/available', + 'uri' => 'admin/realms/{realm}/groups/{id}/role-mappings/clients/{client}/available', 'description' => 'Get available client-level roles that can be mapped to the group', 'httpMethod' => 'GET', 'parameters' => array( @@ -1118,7 +1118,7 @@ ), 'getGroupClientRoleMappingsWithComposite' => array( - 'uri' => 'auth/admin/realms/{realm}/groups/{id}/role-mappings/clients/{client}/composite', + 'uri' => 'admin/realms/{realm}/groups/{id}/role-mappings/clients/{client}/composite', 'description' => 'Get effective client-level role mappings This recurses any composite roles for groups', 'httpMethod' => 'GET', 'parameters' => array( @@ -1144,7 +1144,7 @@ ), 'addUserClientRoleMappings' => array( - 'uri' => 'auth/admin/realms/{realm}/users/{id}/role-mappings/clients/{client}', + 'uri' => 'admin/realms/{realm}/users/{id}/role-mappings/clients/{client}', 'description' => 'Add client-level roles to the user role mapping ', 'httpMethod' => 'POST', 'parameters' => array( @@ -1178,7 +1178,7 @@ ), 'getUserClientRoleMappings' => array( - 'uri' => 'auth/admin/realms/{realm}/users/{id}/role-mappings/clients/{client}', + 'uri' => 'admin/realms/{realm}/users/{id}/role-mappings/clients/{client}', 'description' => 'Get client-level role mappings for the user, and the app', 'httpMethod' => 'GET', 'parameters' => array( @@ -1204,7 +1204,7 @@ ), 'deleteUserClientRoleMappings' => array( - 'uri' => 'auth/admin/realms/{realm}/users/{id}/role-mappings/clients/{client}', + 'uri' => 'admin/realms/{realm}/users/{id}/role-mappings/clients/{client}', 'description' => 'Delete client-level roles from user role mapping', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -1238,7 +1238,7 @@ ), 'getAvailableUserClientRoleMappings' => array( - 'uri' => 'auth/admin/realms/{realm}/users/{id}/role-mappings/clients/{client}/available', + 'uri' => 'admin/realms/{realm}/users/{id}/role-mappings/clients/{client}/available', 'description' => 'Get available client-level roles that can be mapped to the user', 'httpMethod' => 'GET', 'parameters' => array( @@ -1264,7 +1264,7 @@ ), 'getUserClientRoleMappingsWithComposite' => array( - 'uri' => 'auth/admin/realms/{realm}/users/{id}/role-mappings/clients/{client}/composite', + 'uri' => 'admin/realms/{realm}/users/{id}/role-mappings/clients/{client}/composite', 'description' => 'Get effective client-level role mappings This recurses any composite roles for users', 'httpMethod' => 'GET', 'parameters' => array( @@ -1292,7 +1292,7 @@ // Client Scopes 'createClientScope' => array( - 'uri' => 'auth/admin/realms/{realm}/client-scopes', + 'uri' => 'admin/realms/{realm}/client-scopes', 'description' => 'Create a new client scope Client Scope’s name must be unique!', 'httpMethod' => 'POST', 'parameters' => array( @@ -1306,7 +1306,7 @@ ), 'getClientScopes' => array( - 'uri' => 'auth/admin/realms/{realm}/client-scopes', + 'uri' => 'admin/realms/{realm}/client-scopes', 'description' => 'Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm', 'httpMethod' => 'GET', 'parameters' => array( @@ -1320,7 +1320,7 @@ ), 'getClientScope' => array( - 'uri' => 'auth/admin/realms/{realm}/client-scopes/{id}', + 'uri' => 'admin/realms/{realm}/client-scopes/{id}', 'description' => 'Get representation of the client scope', 'httpMethod' => 'GET', 'parameters' => array( @@ -1340,7 +1340,7 @@ ), 'updateClientScope' => array( - 'uri' => 'auth/admin/realms/{realm}/client-scopes/{id}', + 'uri' => 'admin/realms/{realm}/client-scopes/{id}', 'description' => 'Update the client scope', 'httpMethod' => 'PUT', 'parameters' => array( @@ -1360,7 +1360,7 @@ ), 'deleteClientScope' => array( - 'uri' => 'auth/admin/realms/{realm}/client-scopes/{id}', + 'uri' => 'admin/realms/{realm}/client-scopes/{id}', 'description' => 'Delete the client scope', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -1382,7 +1382,7 @@ // Clients 'createClient' => array( - 'uri' => 'auth/admin/realms/{realm}/clients', + 'uri' => 'admin/realms/{realm}/clients', 'description' => 'Create a new client Client’s client_id must be unique!', 'httpMethod' => 'POST', 'parameters' => array( @@ -1396,7 +1396,7 @@ ), 'getClients' => array( - 'uri' => 'auth/admin/realms/{realm}/clients', + 'uri' => 'admin/realms/{realm}/clients', 'description' => 'Get clients belonging to the realm Returns a list of clients belonging to the realm', 'httpMethod' => 'GET', 'parameters' => array( @@ -1422,7 +1422,7 @@ ), 'getClient' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}', + 'uri' => 'admin/realms/{realm}/clients/{id}', 'description' => 'Get representation of the client', 'httpMethod' => 'GET', 'parameters' => array( @@ -1442,7 +1442,7 @@ ), 'updateClient' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}', + 'uri' => 'admin/realms/{realm}/clients/{id}', 'description' => 'Update the client', 'httpMethod' => 'PUT', 'parameters' => array( @@ -1462,7 +1462,7 @@ ), 'deleteClient' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}', + 'uri' => 'admin/realms/{realm}/clients/{id}', 'description' => 'Delete the client', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -1482,7 +1482,7 @@ ), 'generateClientSecret' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/client-secret', + 'uri' => 'admin/realms/{realm}/clients/{id}/client-secret', 'description' => 'Generate a new secret for the client', 'httpMethod' => 'POST', 'parameters' => array( @@ -1502,7 +1502,7 @@ ), 'getClientSecret' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/client-secret', + 'uri' => 'admin/realms/{realm}/clients/{id}/client-secret', 'description' => 'Get the client secret', 'httpMethod' => 'GET', 'parameters' => array( @@ -1522,7 +1522,7 @@ ), 'getClientDefaultScopes' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/default-client-scopes', + 'uri' => 'admin/realms/{realm}/clients/{id}/default-client-scopes', 'description' => 'Get default client scopes.', 'httpMethod' => 'GET', 'parameters' => array( @@ -1542,7 +1542,7 @@ ), 'setClientScopeAsDefault' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/default-client-scopes/{clientScopeId}', + 'uri' => 'admin/realms/{realm}/clients/{id}/default-client-scopes/{clientScopeId}', 'description' => 'Set client scope as default scope', 'httpMethod' => 'PUT', 'parameters' => array( @@ -1568,7 +1568,7 @@ ), 'removeClientScopeAsDefault' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/default-client-scopes/{clientScopeId}', + 'uri' => 'admin/realms/{realm}/clients/{id}/default-client-scopes/{clientScopeId}', 'description' => 'Remove client scope from default scopes ', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -1594,7 +1594,7 @@ ), 'getClientExampleAccessToken' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/evaluate-scopes/generate-example-access-token', + 'uri' => 'admin/realms/{realm}/clients/{id}/evaluate-scopes/generate-example-access-token', 'description' => 'Create JSON with payload of example access token', 'httpMethod' => 'GET', 'parameters' => array( @@ -1626,7 +1626,7 @@ ), 'getClientProtocolMappers' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/evaluate-scopes/protocol-mappers', + 'uri' => 'admin/realms/{realm}/clients/{id}/evaluate-scopes/protocol-mappers', 'description' => 'Return list of all protocol mappers, which will be used when generating tokens issued for particular client.', 'httpMethod' => 'GET', 'parameters' => array( @@ -1652,7 +1652,7 @@ ), 'getClientAllowedRoleMappingsInContainer' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/evaluate-scopes/scope-mappings/{roleContainerId}/granted', + 'uri' => 'admin/realms/{realm}/clients/{id}/evaluate-scopes/scope-mappings/{roleContainerId}/granted', 'description' => 'Get effective scope mapping of all roles of particular role container, which this client is defacto allowed to have in the accessToken issued for him.', 'httpMethod' => 'GET', 'parameters' => array( @@ -1684,7 +1684,7 @@ ), 'getClientNotAllowedRoleMappingsInContainer' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/evaluate-scopes/scope-mappings/{roleContainerId}/not-granted', + 'uri' => 'admin/realms/{realm}/clients/{id}/evaluate-scopes/scope-mappings/{roleContainerId}/not-granted', 'description' => 'Get roles, which this client doesn’t have scope for and can’t have them in the accessToken issued for him.', 'httpMethod' => 'GET', 'parameters' => array( @@ -1716,7 +1716,7 @@ ), 'getClientInstallationConfiguration' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/installation/providers/{providerId}', + 'uri' => 'admin/realms/{realm}/clients/{id}/installation/providers/{providerId}', 'description' => 'Generate client adapter configuration takes one of these (keycloak-oidc-keycloak-json, keycloak-oidc-jboss-subsystem-cli, keycloak-oidc-jboss-subsystem, keycloak-saml, keycloak-saml-subsystem-cli, keycloak-saml-subsystem) ', 'httpMethod' => 'GET', 'parameters' => array( @@ -1742,7 +1742,7 @@ ), 'getClientAuthorizationPermissionsStatus' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/management/permissions', + 'uri' => 'admin/realms/{realm}/clients/{id}/management/permissions', 'description' => 'Return object stating whether client Authorization permissions have been initialized or not and a reference', 'httpMethod' => 'GET', 'parameters' => array( @@ -1762,7 +1762,7 @@ ), 'updateClientAuthorizationPermissionsStatus' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/management/permissions', + 'uri' => 'admin/realms/{realm}/clients/{id}/management/permissions', 'description' => 'Update client Authorization permissions initialization and a reference', 'httpMethod' => 'PUT', 'parameters' => array( @@ -1782,7 +1782,7 @@ ), 'registerClientClusterNode' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/nodes', + 'uri' => 'admin/realms/{realm}/clients/{id}/nodes', 'description' => 'Register a cluster node with the client Manually register cluster node to this client - usually it’s not needed to call this directly as adapter should handle by sending registration request to Keycloak', 'httpMethod' => 'POST', 'parameters' => array( @@ -1808,7 +1808,7 @@ ), 'unregisterClientClusterNode' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/nodes/{node}', + 'uri' => 'admin/realms/{realm}/clients/{id}/nodes/{node}', 'description' => 'Unregister a cluster node from the client ', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -1834,7 +1834,7 @@ ), 'getClientOfflineSessionsCount' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/offline-session-count', + 'uri' => 'admin/realms/{realm}/clients/{id}/offline-session-count', 'description' => 'Get application offline session count Returns a number of offline user sessions associated with this client { "count": number }', 'httpMethod' => 'GET', 'parameters' => array( @@ -1854,7 +1854,7 @@ ), 'getClientOfflineSessions' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/offline-sessions', + 'uri' => 'admin/realms/{realm}/clients/{id}/offline-sessions', 'description' => 'Get offline sessions for client Returns a list of offline user sessions associated with this client', 'httpMethod' => 'GET', 'parameters' => array( @@ -1886,7 +1886,7 @@ ), 'getClientOptionalScopes' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/optional-client-scopes', + 'uri' => 'admin/realms/{realm}/clients/{id}/optional-client-scopes', 'description' => 'Get optional client scopes.', 'httpMethod' => 'GET', 'parameters' => array( @@ -1906,7 +1906,7 @@ ), 'assignClientOptionalScope' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/optional-client-scopes/{clientScopeId}', + 'uri' => 'admin/realms/{realm}/clients/{id}/optional-client-scopes/{clientScopeId}', 'description' => 'Assign client optional scope', 'httpMethod' => 'PUT', 'parameters' => array( @@ -1932,7 +1932,7 @@ ), 'unassignClientOptionalScope' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/optional-client-scopes/{clientScopeId}', + 'uri' => 'admin/realms/{realm}/clients/{id}/optional-client-scopes/{clientScopeId}', 'description' => 'remove client optional scope assignment', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -1958,7 +1958,7 @@ ), 'pushClientRevocationPolicy' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/push-revocation', + 'uri' => 'admin/realms/{realm}/clients/{id}/push-revocation', 'description' => 'Push the client’s revocation policy to its admin URL If the client has an admin URL, push revocation policy to it.', 'httpMethod' => 'POST', 'parameters' => array( @@ -1978,7 +1978,7 @@ ), 'generateClientRegistrationToken' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/registration-access-token', + 'uri' => 'admin/realms/{realm}/clients/{id}/registration-access-token', 'description' => 'Generate a new registration access token for the client', 'httpMethod' => 'POST', 'parameters' => array( @@ -1998,7 +1998,7 @@ ), 'getServiceAccountDedicatedUser' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/service-account-user', + 'uri' => 'admin/realms/{realm}/clients/{id}/service-account-user', 'description' => 'Get a user dedicated to the service account', 'httpMethod' => 'GET', 'parameters' => array( @@ -2018,7 +2018,7 @@ ), 'getClientSessionsCount' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/session-count', + 'uri' => 'admin/realms/{realm}/clients/{id}/session-count', 'description' => 'Get application session count Returns a number of user sessions associated with this client { "count": number } ', 'httpMethod' => 'GET', 'parameters' => array( @@ -2038,7 +2038,7 @@ ), 'testClientNodesAvailability' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/test-nodes-available', + 'uri' => 'admin/realms/{realm}/clients/{id}/test-nodes-available', 'description' => "Test if registered cluster nodes are available Tests availability by sending 'ping' request to all cluster nodes.", 'httpMethod' => 'GET', 'parameters' => array( @@ -2058,7 +2058,7 @@ ), 'getClientSessions' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/user-sessions', + 'uri' => 'admin/realms/{realm}/clients/{id}/user-sessions', 'description' => 'Get user sessions for client Returns a list of user sessions associated with this client', 'httpMethod' => 'GET', 'parameters' => array( @@ -2080,7 +2080,7 @@ // Component 'createComponent' => array( - 'uri' => 'auth/admin/realms/{realm}/components', + 'uri' => 'admin/realms/{realm}/components', 'description' => 'Create new component', 'httpMethod' => 'POST', 'parameters' => array( @@ -2094,7 +2094,7 @@ ), 'getComponents' => array( - 'uri' => 'auth/admin/realms/{realm}/components', + 'uri' => 'admin/realms/{realm}/components', 'description' => 'Get components', 'httpMethod' => 'GET', 'parameters' => array( @@ -2108,7 +2108,7 @@ ), 'getComponent' => array( - 'uri' => 'auth/admin/realms/{realm}/components/{id}', + 'uri' => 'admin/realms/{realm}/components/{id}', 'description' => 'Get component', 'httpMethod' => 'GET', 'parameters' => array( @@ -2128,7 +2128,7 @@ ), 'updateComponent' => array( - 'uri' => 'auth/admin/realms/{realm}/components/{id}', + 'uri' => 'admin/realms/{realm}/components/{id}', 'description' => 'Update component', 'httpMethod' => 'PUT', 'parameters' => array( @@ -2148,7 +2148,7 @@ ), 'deleteComponent' => array( - 'uri' => 'auth/admin/realms/{realm}/components/{id}', + 'uri' => 'admin/realms/{realm}/components/{id}', 'description' => 'Delete component', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -2168,7 +2168,7 @@ ), 'getComponentSubTypes' => array( - 'uri' => 'auth/admin/realms/{realm}/components/{id}/sub-component-types', + 'uri' => 'admin/realms/{realm}/components/{id}/sub-component-types', 'description' => 'List of subcomponent types that are available to configure for a particular parent component.', 'httpMethod' => 'GET', 'parameters' => array( @@ -2196,7 +2196,7 @@ // Groups 'createGroup' => array( - 'uri' => 'auth/admin/realms/{realm}/groups', + 'uri' => 'admin/realms/{realm}/groups', 'description' => 'create or add a top level realm groupSet or create child.', 'httpMethod' => 'POST', 'parameters' => array( @@ -2210,7 +2210,7 @@ ), 'getGroups' => array( - 'uri' => 'auth/admin/realms/{realm}/groups', + 'uri' => 'admin/realms/{realm}/groups', 'description' => 'Get group hierarchy.', 'httpMethod' => 'GET', 'parameters' => array( @@ -2248,7 +2248,7 @@ ), 'getGroupsCount' => array( - 'uri' => 'auth/admin/realms/{realm}/groups/count', + 'uri' => 'admin/realms/{realm}/groups/count', 'description' => 'Returns the groups counts.', 'httpMethod' => 'GET', 'parameters' => array( @@ -2274,7 +2274,7 @@ ), 'getGroup' => array( - 'uri' => 'auth/admin/realms/{realm}/groups/{id}', + 'uri' => 'admin/realms/{realm}/groups/{id}', 'description' => 'Get Group', 'httpMethod' => 'GET', 'parameters' => array( @@ -2294,7 +2294,7 @@ ), 'updateGroup' => array( - 'uri' => 'auth/admin/realms/{realm}/groups/{id}', + 'uri' => 'admin/realms/{realm}/groups/{id}', 'description' => 'Update group, ignores subgroups.', 'httpMethod' => 'PUT', 'parameters' => array( @@ -2314,7 +2314,7 @@ ), 'removeGroup' => array( - 'uri' => 'auth/admin/realms/{realm}/groups/{id}', + 'uri' => 'admin/realms/{realm}/groups/{id}', 'description' => 'Delete Group', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -2334,7 +2334,7 @@ ), 'createChildGroup' => array( - 'uri' => 'auth/admin/realms/{realm}/groups/{id}/children', + 'uri' => 'admin/realms/{realm}/groups/{id}/children', 'description' => 'Set or create child.', 'httpMethod' => 'POST', 'parameters' => array( @@ -2354,7 +2354,7 @@ ), 'getGroupManagementPermissions' => array( - 'uri' => 'auth/admin/realms/{realm}/groups/{id}/management/permissions', + 'uri' => 'admin/realms/{realm}/groups/{id}/management/permissions', 'description' => 'Return object stating whether client Authorization permissions have been initialized or not and a reference', 'httpMethod' => 'GET', 'parameters' => array( @@ -2374,7 +2374,7 @@ ), 'updateGroupManagementPermissions' => array( - 'uri' => 'auth/admin/realms/{realm}/groups/{id}/management/permissions', + 'uri' => 'admin/realms/{realm}/groups/{id}/management/permissions', 'description' => 'Return object stating whether client Authorization permissions have been initialized or not and a reference', 'httpMethod' => 'PUT', 'parameters' => array( @@ -2394,7 +2394,7 @@ ), 'getGroupMembers' => array( - 'uri' => 'auth/admin/realms/{realm}/groups/{id}/members', + 'uri' => 'admin/realms/{realm}/groups/{id}/members', 'description' => 'Get users Returns a list of users, filtered according to query parameters', 'httpMethod' => 'GET', 'parameters' => array( @@ -2434,7 +2434,7 @@ // Identity Providers 'importIdentityProvider' => array( - 'uri' => 'auth/admin/realms/{realm}/identity-provider/import-config', + 'uri' => 'admin/realms/{realm}/identity-provider/import-config', 'description' => 'Import identity provider from uploaded JSON file', 'httpMethod' => 'POST', 'parameters' => array( @@ -2458,7 +2458,7 @@ ), 'createIdentityProvider' => array( - 'uri' => 'auth/admin/realms/{realm}/identity-provider/instances', + 'uri' => 'admin/realms/{realm}/identity-provider/instances', 'description' => 'Create a new identity provider', 'httpMethod' => 'POST', 'parameters' => array( @@ -2472,7 +2472,7 @@ ), 'getIdentityProviders' => array( - 'uri' => 'auth/admin/realms/{realm}/identity-provider/instances', + 'uri' => 'admin/realms/{realm}/identity-provider/instances', 'description' => 'Get identity providers', 'httpMethod' => 'GET', 'parameters' => array( @@ -2486,7 +2486,7 @@ ), 'getIdentityProvider' => array( - 'uri' => 'auth/admin/realms/{realm}/identity-provider/instances/{alias}', + 'uri' => 'admin/realms/{realm}/identity-provider/instances/{alias}', 'description' => 'Get the identity provider', 'httpMethod' => 'GET', 'parameters' => array( @@ -2506,7 +2506,7 @@ ), 'updateIdentityProvider' => array( - 'uri' => 'auth/admin/realms/{realm}/identity-provider/instances/{alias}', + 'uri' => 'admin/realms/{realm}/identity-provider/instances/{alias}', 'description' => 'Update the identity provider', 'httpMethod' => 'PUT', 'parameters' => array( @@ -2526,7 +2526,7 @@ ), 'deleteIdentityProvider' => array( - 'uri' => 'auth/admin/realms/{realm}/identity-provider/instances/{alias}', + 'uri' => 'admin/realms/{realm}/identity-provider/instances/{alias}', 'description' => 'Delete the identity provider', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -2546,7 +2546,7 @@ ), 'exportIdentityProviderBrokerConfig' => array( - 'uri' => 'auth/admin/realms/{realm}/identity-provider/instances/{alias}/export', + 'uri' => 'admin/realms/{realm}/identity-provider/instances/{alias}/export', 'description' => 'Export public broker configuration for identity provider', 'httpMethod' => 'GET', 'parameters' => array( @@ -2572,7 +2572,7 @@ ), 'getIdentityProviderManagementPermissions' => array( - 'uri' => 'auth/admin/realms/{realm}/identity-provider/instances/{alias}/management/permissions', + 'uri' => 'admin/realms/{realm}/identity-provider/instances/{alias}/management/permissions', 'description' => 'Return object stating whether client Authorization permissions have been initialized or not and a reference', 'httpMethod' => 'GET', 'parameters' => array( @@ -2592,7 +2592,7 @@ ), 'updateIdentityProviderManagementPermissions' => array( - 'uri' => 'auth/admin/realms/{realm}/identity-provider/instances/{alias}/management/permissions', + 'uri' => 'admin/realms/{realm}/identity-provider/instances/{alias}/management/permissions', 'description' => 'Return object stating whether client Authorization permissions have been initialized or not and a reference', 'httpMethod' => 'PUT', 'parameters' => array( @@ -2612,7 +2612,7 @@ ), 'getIdentityProviderMapperTypes' => array( - 'uri' => 'auth/admin/realms/{realm}/identity-provider/instances/{alias}/mapper-types', + 'uri' => 'admin/realms/{realm}/identity-provider/instances/{alias}/mapper-types', 'description' => 'Get mapper types for identity provider', 'httpMethod' => 'GET', 'parameters' => array( @@ -2632,7 +2632,7 @@ ), 'createIdentityProviderMapper' => array( - 'uri' => 'auth/admin/realms/{realm}/identity-provider/instances/{alias}/mappers', + 'uri' => 'admin/realms/{realm}/identity-provider/instances/{alias}/mappers', 'description' => 'Add a mapper to identity provider', 'httpMethod' => 'POST', 'parameters' => array( @@ -2652,7 +2652,7 @@ ), 'getIdentityProviderMappers' => array( - 'uri' => 'auth/admin/realms/{realm}/identity-provider/instances/{alias}/mappers', + 'uri' => 'admin/realms/{realm}/identity-provider/instances/{alias}/mappers', 'description' => 'Get mappers for identity provider', 'httpMethod' => 'GET', 'parameters' => array( @@ -2672,7 +2672,7 @@ ), 'getIdentityProviderMapper' => array( - 'uri' => 'auth/admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id}', + 'uri' => 'admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id}', 'description' => 'Get mapper by id for the identity provider', 'httpMethod' => 'GET', 'parameters' => array( @@ -2698,7 +2698,7 @@ ), 'updateIdentityProviderMapper' => array( - 'uri' => 'auth/admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id}', + 'uri' => 'admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id}', 'description' => 'Update a mapper for the identity provider', 'httpMethod' => 'PUT', 'parameters' => array( @@ -2724,7 +2724,7 @@ ), 'deleteIdentityProviderMapper' => array( - 'uri' => 'auth/admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id}', + 'uri' => 'admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id}', 'description' => 'Delete a mapper for the identity provider', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -2750,7 +2750,7 @@ ), 'getIdentityProviderById' => array( - 'uri' => 'auth/admin/realms/{realm}/identity-provider/providers/{provider_id}', + 'uri' => 'admin/realms/{realm}/identity-provider/providers/{provider_id}', 'description' => 'Get identity provider', 'httpMethod' => 'GET', 'parameters' => array( @@ -2772,7 +2772,7 @@ // Key 'getRealmKeys' => array( - 'uri' => 'auth/admin/realms/{realm}/keys', + 'uri' => 'admin/realms/{realm}/keys', 'description' => 'Get Realm keys', 'httpMethod' => 'GET', 'parameters' => array( @@ -2788,7 +2788,7 @@ // Protocol Mappers 'createClientScopeProtocolMappers' => array( - 'uri' => 'auth/admin/realms/{realm}/client-scopes/{clientScopeId}/protocol-mappers/add-models', + 'uri' => 'admin/realms/{realm}/client-scopes/{clientScopeId}/protocol-mappers/add-models', 'description' => 'Create multiple mappers', 'httpMethod' => 'POST', 'parameters' => array( @@ -2816,7 +2816,7 @@ ), 'createClientScopeProtocolMapper' => array( - 'uri' => 'auth/admin/realms/{realm}/client-scopes/{clientScopeId}/protocol-mappers/models', + 'uri' => 'admin/realms/{realm}/client-scopes/{clientScopeId}/protocol-mappers/models', 'description' => 'Create a mapper', 'httpMethod' => 'POST', 'parameters' => array( @@ -2836,7 +2836,7 @@ ), 'getClientScopeProtocolMappers' => array( - 'uri' => 'auth/admin/realms/{realm}/client-scopes/{clientScopeId}/protocol-mappers/models', + 'uri' => 'admin/realms/{realm}/client-scopes/{clientScopeId}/protocol-mappers/models', 'description' => 'Get mappers', 'httpMethod' => 'GET', 'parameters' => array( @@ -2856,7 +2856,7 @@ ), 'getClientScopeProtocolMapperById' => array( - 'uri' => 'auth/admin/realms/{realm}/client-scopes/{clientScopeId}/protocol-mappers/models/{mapperId}', + 'uri' => 'admin/realms/{realm}/client-scopes/{clientScopeId}/protocol-mappers/models/{mapperId}', 'description' => 'Get mapper by id', 'httpMethod' => 'GET', 'parameters' => array( @@ -2882,7 +2882,7 @@ ), 'updateClientScopeProtocolMapper' => array( - 'uri' => 'auth/admin/realms/{realm}/client-scopes/{clientScopeId}/protocol-mappers/models/{mapperId}', + 'uri' => 'admin/realms/{realm}/client-scopes/{clientScopeId}/protocol-mappers/models/{mapperId}', 'description' => 'Update the mapper', 'httpMethod' => 'PUT', 'parameters' => array( @@ -2908,7 +2908,7 @@ ), 'deleteClientScopeProtocolMapper' => array( - 'uri' => 'auth/admin/realms/{realm}/client-scopes/{clientScopeId}/protocol-mappers/models/{mapperId}', + 'uri' => 'admin/realms/{realm}/client-scopes/{clientScopeId}/protocol-mappers/models/{mapperId}', 'description' => 'Delete the mapper', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -2934,7 +2934,7 @@ ), 'getClientScopeProtocolMappersByProtocolName' => array( - 'uri' => 'auth/admin/realms/{realm}/client-scopes/{clientScopeId}/protocol-mappers/protocol/{protocol}', + 'uri' => 'admin/realms/{realm}/client-scopes/{clientScopeId}/protocol-mappers/protocol/{protocol}', 'description' => 'Delete the mapper', 'httpMethod' => 'GET', 'parameters' => array( @@ -2960,7 +2960,7 @@ ), 'createClientProtocolMappers' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{clientId}/protocol-mappers/add-models', + 'uri' => 'admin/realms/{realm}/clients/{clientId}/protocol-mappers/add-models', 'description' => 'Create multiple mappers', 'httpMethod' => 'POST', 'parameters' => array( @@ -2988,7 +2988,7 @@ ), 'createClientProtocolMapper' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{clientId}/protocol-mappers/models', + 'uri' => 'admin/realms/{realm}/clients/{clientId}/protocol-mappers/models', 'description' => 'Create a mapper', 'httpMethod' => 'POST', 'parameters' => array( @@ -3008,7 +3008,7 @@ ), 'getClientProtocolMappers' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{clientId}/protocol-mappers/models', + 'uri' => 'admin/realms/{realm}/clients/{clientId}/protocol-mappers/models', 'description' => 'Get mappers', 'httpMethod' => 'GET', 'parameters' => array( @@ -3028,7 +3028,7 @@ ), 'getClientProtocolMapperById' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{clientId}/protocol-mappers/models/{mapperId}', + 'uri' => 'admin/realms/{realm}/clients/{clientId}/protocol-mappers/models/{mapperId}', 'description' => 'Get mapper by id', 'httpMethod' => 'GET', 'parameters' => array( @@ -3054,7 +3054,7 @@ ), 'updateClientProtocolMapper' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{clientId}/protocol-mappers/models/{mapperId}', + 'uri' => 'admin/realms/{realm}/clients/{clientId}/protocol-mappers/models/{mapperId}', 'description' => 'Update the mapper', 'httpMethod' => 'PUT', 'parameters' => array( @@ -3080,7 +3080,7 @@ ), 'deleteClientProtocolMapper' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{clientId}/protocol-mappers/models/{mapperId}', + 'uri' => 'admin/realms/{realm}/clients/{clientId}/protocol-mappers/models/{mapperId}', 'description' => 'Delete the mapper', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -3106,7 +3106,7 @@ ), 'getClientProtocolMappersByProtocolName' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{clientId}/protocol-mappers/protocol/{protocol}', + 'uri' => 'admin/realms/{realm}/clients/{clientId}/protocol-mappers/protocol/{protocol}', 'description' => 'Delete the mapper', 'httpMethod' => 'GET', 'parameters' => array( @@ -3134,14 +3134,14 @@ // Realms Admin 'importRealm' => array( - 'uri' => 'auth/admin/realms/', + 'uri' => 'admin/realms/', 'description' => 'Import a realm Imports a realm from a full representation of that realm.', 'httpMethod' => 'POST', 'parameters' => $RealmRepresentation ), 'getRealm' => array( - 'uri' => 'auth/admin/realms/{realm}', + 'uri' => 'admin/realms/{realm}', 'description' => 'Get the top-level representation of the realm It will not include nested information like User and Client representations.', 'httpMethod' => 'GET', 'parameters' => array( @@ -3155,7 +3155,7 @@ ), 'updateRealm' => array( - 'uri' => 'auth/admin/realms/{realm}', + 'uri' => 'admin/realms/{realm}', 'description' => 'Update the top-level information of the realm Any user, roles or client information in the representation will be ignored.', 'httpMethod' => 'PUT', 'parameters' => array( @@ -3169,7 +3169,7 @@ ), 'deleteRealm' => array( - 'uri' => 'auth/admin/realms/{realm}', + 'uri' => 'admin/realms/{realm}', 'description' => 'Delete the realm', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -3183,7 +3183,7 @@ ), 'getAdminEvents' => array( - 'uri' => 'auth/admin/realms/{realm}/admin-events', + 'uri' => 'admin/realms/{realm}/admin-events', 'description' => 'Get admin events Returns all admin events, or filters events based on URL query parameters listed here', 'httpMethod' => 'GET', 'parameters' => array( @@ -3263,7 +3263,7 @@ ), 'deleteAdminEvents' => array( - 'uri' => 'auth/admin/realms/{realm}/admin-events', + 'uri' => 'admin/realms/{realm}/admin-events', 'description' => 'Delete all admin events', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -3277,7 +3277,7 @@ ), 'clearExternalPublicKeysCache' => array( - 'uri' => 'auth/admin/realms/{realm}/clear-keys-cache', + 'uri' => 'admin/realms/{realm}/clear-keys-cache', 'description' => 'Clear cache of external public keys (Public keys of clients or Identity providers)', 'httpMethod' => 'POST', 'parameters' => array( @@ -3291,7 +3291,7 @@ ), 'clearRealmCache' => array( - 'uri' => 'auth/admin/realms/{realm}/clear-realm-cache', + 'uri' => 'admin/realms/{realm}/clear-realm-cache', 'description' => 'Clear realm cache', 'httpMethod' => 'POST', 'parameters' => array( @@ -3305,7 +3305,7 @@ ), 'clearUserCache' => array( - 'uri' => 'auth/admin/realms/{realm}/clear-user-cache', + 'uri' => 'admin/realms/{realm}/clear-user-cache', 'description' => 'Clear user cache', 'httpMethod' => 'POST', 'parameters' => array( @@ -3319,7 +3319,7 @@ ), 'importClient' => array( - 'uri' => 'auth/admin/realms/{realm}/client-description-converter', + 'uri' => 'admin/realms/{realm}/client-description-converter', 'description' => 'Base path for importing clients under this realm.', 'httpMethod' => 'POST', 'parameters' => array( @@ -3339,7 +3339,7 @@ ), 'getClientsSessionStats' => array( - 'uri' => 'auth/admin/realms/{realm}/client-session-stats', + 'uri' => 'admin/realms/{realm}/client-session-stats', 'description' => 'Get client session stats Returns a JSON map.', 'httpMethod' => 'GET', 'parameters' => array( @@ -3353,7 +3353,7 @@ ), 'getCredentialRegistrators' => array( - 'uri' => 'auth/admin/realms/{realm}/credential-registrators', + 'uri' => 'admin/realms/{realm}/credential-registrators', 'description' => 'Get Credential Registrators', 'httpMethod' => 'GET', 'parameters' => array( @@ -3367,7 +3367,7 @@ ), 'getDefaultClientScopes' => array( - 'uri' => 'auth/admin/realms/{realm}/default-default-client-scopes', + 'uri' => 'admin/realms/{realm}/default-default-client-scopes', 'description' => 'Get realm default client scopes.', 'httpMethod' => 'GET', 'parameters' => array( @@ -3381,7 +3381,7 @@ ), 'setScopeAsDefaultClientScope' => array( - 'uri' => 'auth/admin/realms/{realm}/default-default-client-scopes/{clientScopeId}', + 'uri' => 'admin/realms/{realm}/default-default-client-scopes/{clientScopeId}', 'description' => 'Set scope as realm default client scope.', 'httpMethod' => 'PUT', 'parameters' => array( @@ -3401,7 +3401,7 @@ ), 'unsetScopeAsDefaultClientScope' => array( - 'uri' => 'auth/admin/realms/{realm}/default-default-client-scopes/{clientScopeId}', + 'uri' => 'admin/realms/{realm}/default-default-client-scopes/{clientScopeId}', 'description' => 'Remove scope as realm default client scope.', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -3421,7 +3421,7 @@ ), 'getDefaultGroupHierarchy' => array( - 'uri' => 'auth/admin/realms/{realm}/default-groups', + 'uri' => 'admin/realms/{realm}/default-groups', 'description' => 'Get group hierarchy.', 'httpMethod' => 'GET', 'parameters' => array( @@ -3435,7 +3435,7 @@ ), 'setGroupAsDefaultGroup' => array( - 'uri' => 'auth/admin/realms/{realm}/default-groups/{groupId}', + 'uri' => 'admin/realms/{realm}/default-groups/{groupId}', 'description' => 'Set group as default group.', 'httpMethod' => 'PUT', 'parameters' => array( @@ -3455,7 +3455,7 @@ ), 'unsetGroupAsDefaultGroup' => array( - 'uri' => 'auth/admin/realms/{realm}/default-groups/{groupId}', + 'uri' => 'admin/realms/{realm}/default-groups/{groupId}', 'description' => 'Remove group as default group.', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -3475,7 +3475,7 @@ ), 'getOptionalClientScopes' => array( - 'uri' => 'auth/admin/realms/{realm}/default-optional-client-scopes', + 'uri' => 'admin/realms/{realm}/default-optional-client-scopes', 'description' => 'Get realm optional client scopes.', 'httpMethod' => 'GET', 'parameters' => array( @@ -3489,7 +3489,7 @@ ), 'setScopeAsOptionalClientScope' => array( - 'uri' => 'auth/admin/realms/{realm}/default-optional-client-scopes/{clientScopeId}', + 'uri' => 'admin/realms/{realm}/default-optional-client-scopes/{clientScopeId}', 'description' => 'Set scope as realm optional client scope.', 'httpMethod' => 'PUT', 'parameters' => array( @@ -3509,7 +3509,7 @@ ), 'unsetScopeAsOptionalClientScope' => array( - 'uri' => 'auth/admin/realms/{realm}/default-optional-client-scopes/{clientScopeId}', + 'uri' => 'admin/realms/{realm}/default-optional-client-scopes/{clientScopeId}', 'description' => 'Remove scope as realm optional client scope.', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -3529,7 +3529,7 @@ ), 'getAllEvents' => array( - 'uri' => 'auth/admin/realms/{realm}/events', + 'uri' => 'admin/realms/{realm}/events', 'description' => 'Get events Returns all events, or filters them based on URL query parameters listed here', 'httpMethod' => 'GET', 'parameters' => array( @@ -3591,7 +3591,7 @@ ), 'deleteAllEvents' => array( - 'uri' => 'auth/admin/realms/{realm}/events', + 'uri' => 'admin/realms/{realm}/events', 'description' => 'Delete all events', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -3605,7 +3605,7 @@ ), 'getEventsConfig' => array( - 'uri' => 'auth/admin/realms/{realm}/events/config', + 'uri' => 'admin/realms/{realm}/events/config', 'description' => 'Get the events provider configuration Returns JSON object with events provider configuration', 'httpMethod' => 'GET', 'parameters' => array( @@ -3619,7 +3619,7 @@ ), 'updateEventsConfig' => array( - 'uri' => 'auth/admin/realms/{realm}/events/config', + 'uri' => 'admin/realms/{realm}/events/config', 'description' => 'Update the events provider Change the events provider and/or its configuration', 'httpMethod' => 'PUT', 'parameters' => array( @@ -3633,7 +3633,7 @@ ), 'getGroupByPath' => array( - 'uri' => 'auth/admin/realms/{realm}/group-by-path/{path}', + 'uri' => 'admin/realms/{realm}/group-by-path/{path}', 'description' => 'Get user group by path', 'httpMethod' => 'GET', 'parameters' => array( @@ -3653,7 +3653,7 @@ ), 'logoutAllUsers' => array( - 'uri' => 'auth/admin/realms/{realm}/logout-all', + 'uri' => 'admin/realms/{realm}/logout-all', 'description' => 'Removes all user sessions.', 'httpMethod' => 'POST', 'parameters' => array( @@ -3667,7 +3667,7 @@ ), 'partialExportRealm' => array( - 'uri' => 'auth/admin/realms/{realm}/partial-export', + 'uri' => 'admin/realms/{realm}/partial-export', 'description' => 'Partial export of existing realm into a JSON file.', 'httpMethod' => 'POST', 'parameters' => array( @@ -3693,7 +3693,7 @@ ), 'partialImportRealm' => array( - 'uri' => 'auth/admin/realms/{realm}/partialImport', + 'uri' => 'admin/realms/{realm}/partialImport', 'description' => 'Partial import from a JSON file to an existing realm.', 'httpMethod' => 'POST', 'parameters' => array( @@ -3707,7 +3707,7 @@ ), 'pushRevocationPolicy' => array( - 'uri' => 'auth/admin/realms/{realm}/push-revocation', + 'uri' => 'admin/realms/{realm}/push-revocation', 'description' => 'Push the realm’s revocation policy to any client that has an admin url associated with it.', 'httpMethod' => 'POST', 'parameters' => array( @@ -3721,7 +3721,7 @@ ), 'revokeUserSession' => array( - 'uri' => 'auth/admin/realms/{realm}/sessions/{session}', + 'uri' => 'admin/realms/{realm}/sessions/{session}', 'description' => 'Remove a specific user session.', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -3741,7 +3741,7 @@ ), 'testLDAPConnection' => array( - 'uri' => 'auth/admin/realms/{realm}/testLDAPConnection', + 'uri' => 'admin/realms/{realm}/testLDAPConnection', 'description' => 'Test LDAP connection', 'httpMethod' => 'POST', 'parameters' => array( @@ -3755,7 +3755,7 @@ ), 'testSMTPConnection' => array( - 'uri' => 'auth/admin/realms/{realm}/testSMTPConnection', + 'uri' => 'admin/realms/{realm}/testSMTPConnection', 'description' => 'Test SMTP connection with current logged in user', 'httpMethod' => 'POST', 'parameters' => array( @@ -3769,7 +3769,7 @@ ), 'getUserManagementPermissions' => array( - 'uri' => 'auth/admin/realms/{realm}/users-management-permissions', + 'uri' => 'admin/realms/{realm}/users-management-permissions', 'description' => 'Get User Management Permissions', 'httpMethod' => 'GET', 'parameters' => array( @@ -3783,7 +3783,7 @@ ), 'updateUserManagementPermissions' => array( - 'uri' => 'auth/admin/realms/{realm}/users-management-permissions', + 'uri' => 'admin/realms/{realm}/users-management-permissions', 'description' => 'Update User Management Permissions', 'httpMethod' => 'PUT', 'parameters' => array( @@ -3799,7 +3799,7 @@ // Role Mapper 'getGroupRoleMappings' => array( - 'uri' => 'auth/admin/realms/{realm}/groups/{id}/role-mappings', + 'uri' => 'admin/realms/{realm}/groups/{id}/role-mappings', 'description' => 'Get Group role mappings', 'httpMethod' => 'GET', 'parameters' => array( @@ -3819,7 +3819,7 @@ ), 'addGlobalRolesToGroup' => array( - 'uri' => 'auth/admin/realms/{realm}/groups/{id}/role-mappings/realm', + 'uri' => 'admin/realms/{realm}/groups/{id}/role-mappings/realm', 'description' => 'Add realm-level role mappings to the group', 'httpMethod' => 'POST', 'parameters' => array( @@ -3847,7 +3847,7 @@ ), 'getGroupRealmRoleMappings' => array( - 'uri' => 'auth/admin/realms/{realm}/groups/{id}/role-mappings/realm', + 'uri' => 'admin/realms/{realm}/groups/{id}/role-mappings/realm', 'description' => 'Get realm-level role mappings', 'httpMethod' => 'GET', 'parameters' => array( @@ -3867,7 +3867,7 @@ ), 'deleteGroupRealmRoleMappings' => array( - 'uri' => 'auth/admin/realms/{realm}/groups/{id}/role-mappings/realm', + 'uri' => 'admin/realms/{realm}/groups/{id}/role-mappings/realm', 'description' => 'Delete realm-level role mappings', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -3895,7 +3895,7 @@ ), 'getAvailableGroupRealmRoleMappings' => array( - 'uri' => 'auth/admin/realms/{realm}/groups/{id}/role-mappings/realm/available', + 'uri' => 'admin/realms/{realm}/groups/{id}/role-mappings/realm/available', 'description' => 'Get realm-level role mappings', 'httpMethod' => 'GET', 'parameters' => array( @@ -3915,7 +3915,7 @@ ), 'getEffectiveGroupRealmRoleMappings' => array( - 'uri' => 'auth/admin/realms/{realm}/groups/{id}/role-mappings/realm/composite', + 'uri' => 'admin/realms/{realm}/groups/{id}/role-mappings/realm/composite', 'description' => 'Get effective realm-level role mappings This will recurse all composite roles to get the result.', 'httpMethod' => 'GET', 'parameters' => array( @@ -3935,7 +3935,7 @@ ), 'getUserRoleMappings' => array( - 'uri' => 'auth/admin/realms/{realm}/users/{id}/role-mappings', + 'uri' => 'admin/realms/{realm}/users/{id}/role-mappings', 'description' => 'Get User role mappings', 'httpMethod' => 'GET', 'parameters' => array( @@ -3955,7 +3955,7 @@ ), 'addGlobalRolesToUser' => array( - 'uri' => 'auth/admin/realms/{realm}/users/{id}/role-mappings/realm', + 'uri' => 'admin/realms/{realm}/users/{id}/role-mappings/realm', 'description' => 'Add realm-level role mappings to the user', 'httpMethod' => 'POST', 'parameters' => array( @@ -3983,7 +3983,7 @@ ), 'getUserRealmRoleMappings' => array( - 'uri' => 'auth/admin/realms/{realm}/users/{id}/role-mappings/realm', + 'uri' => 'admin/realms/{realm}/users/{id}/role-mappings/realm', 'description' => 'Get realm-level role mappings', 'httpMethod' => 'GET', 'parameters' => array( @@ -4003,7 +4003,7 @@ ), 'deleteUserRealmRoleMappings' => array( - 'uri' => 'auth/admin/realms/{realm}/users/{id}/role-mappings/realm', + 'uri' => 'admin/realms/{realm}/users/{id}/role-mappings/realm', 'description' => 'Delete realm-level role mappings', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -4031,7 +4031,7 @@ ), 'getAvailableUserRealmRoleMappings' => array( - 'uri' => 'auth/admin/realms/{realm}/users/{id}/role-mappings/realm/available', + 'uri' => 'admin/realms/{realm}/users/{id}/role-mappings/realm/available', 'description' => 'Get realm-level role mappings', 'httpMethod' => 'GET', 'parameters' => array( @@ -4051,7 +4051,7 @@ ), 'getEffectiveUserRealmRoleMappings' => array( - 'uri' => 'auth/admin/realms/{realm}/users/{id}/role-mappings/realm/composite', + 'uri' => 'admin/realms/{realm}/users/{id}/role-mappings/realm/composite', 'description' => 'Get effective realm-level role mappings This will recurse all composite roles to get the result.', 'httpMethod' => 'GET', 'parameters' => array( @@ -4073,7 +4073,7 @@ // Roles 'createClientRole' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/roles', + 'uri' => 'admin/realms/{realm}/clients/{id}/roles', 'description' => 'Create a new role for the realm or client', 'httpMethod' => 'POST', 'parameters' => array( @@ -4093,7 +4093,7 @@ ), 'getClientRoles' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/roles', + 'uri' => 'admin/realms/{realm}/clients/{id}/roles', 'description' => 'Get all roles for the realm or client (Client Specific)', 'httpMethod' => 'GET', 'parameters' => array( @@ -4113,7 +4113,7 @@ ), 'getClientRole' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/roles/{role-name}', + 'uri' => 'admin/realms/{realm}/clients/{id}/roles/{role-name}', 'description' => 'Get a role by name (Client Specific)', 'httpMethod' => 'GET', 'parameters' => array( @@ -4139,7 +4139,7 @@ ), 'updateClientRole' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/roles/{role-name}', + 'uri' => 'admin/realms/{realm}/clients/{id}/roles/{role-name}', 'description' => 'Update a role by name', 'httpMethod' => 'PUT', 'parameters' => array( @@ -4165,7 +4165,7 @@ ), 'deleteClientRole' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/roles/{role-name}', + 'uri' => 'admin/realms/{realm}/clients/{id}/roles/{role-name}', 'description' => 'Delete a role for the realm or client by name', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -4191,7 +4191,7 @@ ), 'addCompositeRoleToClientRole' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/roles/{role-name}/composites', + 'uri' => 'admin/realms/{realm}/clients/{id}/roles/{role-name}/composites', 'description' => 'Add a composite to the role', 'httpMethod' => 'POST', 'parameters' => array( @@ -4225,7 +4225,7 @@ ), 'getClientRoleCompositeRoles' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/roles/{role-name}/composites', + 'uri' => 'admin/realms/{realm}/clients/{id}/roles/{role-name}/composites', 'description' => 'Get composites of the role', 'httpMethod' => 'GET', 'parameters' => array( @@ -4251,7 +4251,7 @@ ), 'deleteCompositeRoleFromClientRole' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/roles/{role-name}/composites', + 'uri' => 'admin/realms/{realm}/clients/{id}/roles/{role-name}/composites', 'description' => 'Remove roles from the role’s composite', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -4285,7 +4285,7 @@ ), 'getClientRoleCompositeRolesForClient' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/roles/{role-name}/composites/clients/{client}', + 'uri' => 'admin/realms/{realm}/clients/{id}/roles/{role-name}/composites/clients/{client}', 'description' => 'An app-level roles for the specified app for the role’s composite', 'httpMethod' => 'GET', 'parameters' => array( @@ -4317,7 +4317,7 @@ ), 'getClientRoleCompositeRolesForRealm' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/roles/{role-name}/composites/realm', + 'uri' => 'admin/realms/{realm}/clients/{id}/roles/{role-name}/composites/realm', 'description' => 'Get realm-level roles of the role’s composite', 'httpMethod' => 'GET', 'parameters' => array( @@ -4343,7 +4343,7 @@ ), 'getClientRoleGroups' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/roles/{role-name}/groups', + 'uri' => 'admin/realms/{realm}/clients/{id}/roles/{role-name}/groups', 'description' => 'Return List of Groups that have the specified role name', 'httpMethod' => 'GET', 'parameters' => array( @@ -4387,7 +4387,7 @@ ), 'getClientRoleManagementPermissions' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/roles/{role-name}/management/permissions', + 'uri' => 'admin/realms/{realm}/clients/{id}/roles/{role-name}/management/permissions', 'description' => 'Return object stating whether role Authoirzation permissions have been initialized or not and a reference', 'httpMethod' => 'GET', 'parameters' => array( @@ -4413,7 +4413,7 @@ ), 'updateClientRoleManagementPermissions' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/roles/{role-name}/management/permissions', + 'uri' => 'admin/realms/{realm}/clients/{id}/roles/{role-name}/management/permissions', 'description' => 'Update object stating whether role Authoirzation permissions have been initialized or not and a reference', 'httpMethod' => 'PUT', 'parameters' => array( @@ -4439,7 +4439,7 @@ ), 'getClientRoleUsers' => array( - 'uri' => 'auth/admin/realms/{realm}/clients/{id}/roles/{role-name}/users', + 'uri' => 'admin/realms/{realm}/clients/{id}/roles/{role-name}/users', 'description' => 'Return List of Users that have the specified role name (Client Specific)', 'httpMethod' => 'GET', 'parameters' => array( @@ -4474,7 +4474,7 @@ ), 'createRealmRole' => array( - 'uri' => 'auth/admin/realms/{realm}/roles', + 'uri' => 'admin/realms/{realm}/roles', 'description' => 'Create a new role for the realm or client', 'httpMethod' => 'POST', 'parameters' => array( @@ -4488,7 +4488,7 @@ ), 'getRealmRoles' => array( - 'uri' => 'auth/admin/realms/{realm}/roles', + 'uri' => 'admin/realms/{realm}/roles', 'description' => 'Get all roles for the realm or client (Realm Specific)', 'httpMethod' => 'GET', 'parameters' => array( @@ -4502,7 +4502,7 @@ ), 'getRealmRole' => array( - 'uri' => 'auth/admin/realms/{realm}/roles/{role-name}', + 'uri' => 'admin/realms/{realm}/roles/{role-name}', 'description' => 'Get a role by name (Realm Specific)', 'httpMethod' => 'GET', 'parameters' => array( @@ -4522,7 +4522,7 @@ ), 'updateRealmRole' => array( - 'uri' => 'auth/admin/realms/{realm}/roles/{role-name}', + 'uri' => 'admin/realms/{realm}/roles/{role-name}', 'description' => 'Update a role by name', 'httpMethod' => 'PUT', 'parameters' => array( @@ -4542,7 +4542,7 @@ ), 'deleteRealmRole' => array( - 'uri' => 'auth/admin/realms/{realm}/roles/{role-name}', + 'uri' => 'admin/realms/{realm}/roles/{role-name}', 'description' => 'Delete a role for the realm or client by name', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -4562,7 +4562,7 @@ ), 'addCompositeRoleToRealmRole' => array( - 'uri' => 'auth/admin/realms/{realm}/roles/{role-name}/composites', + 'uri' => 'admin/realms/{realm}/roles/{role-name}/composites', 'description' => 'Add a composite to the role', 'httpMethod' => 'POST', 'parameters' => array( @@ -4590,7 +4590,7 @@ ), 'getRealmRoleCompositeRoles' => array( - 'uri' => 'auth/admin/realms/{realm}/roles/{role-name}/composites', + 'uri' => 'admin/realms/{realm}/roles/{role-name}/composites', 'description' => 'Get composites of the role', 'httpMethod' => 'GET', 'parameters' => array( @@ -4610,7 +4610,7 @@ ), 'deleteCompositeRoleFromRealmRole' => array( - 'uri' => 'auth/admin/realms/{realm}/roles/{role-name}/composites', + 'uri' => 'admin/realms/{realm}/roles/{role-name}/composites', 'description' => 'Remove roles from the role’s composite', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -4638,7 +4638,7 @@ ), 'getRealmRoleCompositeRolesForClient' => array( - 'uri' => 'auth/admin/realms/{realm}/roles/{role-name}/composites/clients/{client}', + 'uri' => 'admin/realms/{realm}/roles/{role-name}/composites/clients/{client}', 'description' => 'An app-level roles for the specified app for the role’s composite', 'httpMethod' => 'GET', 'parameters' => array( @@ -4664,7 +4664,7 @@ ), 'getRealmRoleCompositeRolesForRealm' => array( - 'uri' => 'auth/admin/realms/{realm}/roles/{role-name}/composites/realm', + 'uri' => 'admin/realms/{realm}/roles/{role-name}/composites/realm', 'description' => 'Get realm-level roles of the role’s composite', 'httpMethod' => 'GET', 'parameters' => array( @@ -4684,7 +4684,7 @@ ), 'getRealmRoleGroups' => array( - 'uri' => 'auth/admin/realms/{realm}/roles/{role-name}/groups', + 'uri' => 'admin/realms/{realm}/roles/{role-name}/groups', 'description' => 'Return List of Groups that have the specified role name', 'httpMethod' => 'GET', 'parameters' => array( @@ -4722,7 +4722,7 @@ ), 'getRealmRoleManagementPermissions' => array( - 'uri' => 'auth/admin/realms/{realm}/roles/{role-name}/management/permissions', + 'uri' => 'admin/realms/{realm}/roles/{role-name}/management/permissions', 'description' => 'Return object stating whether role Authoirzation permissions have been initialized or not and a reference', 'httpMethod' => 'GET', 'parameters' => array( @@ -4742,7 +4742,7 @@ ), 'updateRealmRoleManagementPermissions' => array( - 'uri' => 'auth/admin/realms/{realm}/roles/{role-name}/management/permissions', + 'uri' => 'admin/realms/{realm}/roles/{role-name}/management/permissions', 'description' => 'Update object stating whether role Authoirzation permissions have been initialized or not and a reference', 'httpMethod' => 'PUT', 'parameters' => array( @@ -4762,7 +4762,7 @@ ), 'getRealmRoleUsers' => array( - 'uri' => 'auth/admin/realms/{realm}/roles/{role-name}/users', + 'uri' => 'admin/realms/{realm}/roles/{role-name}/users', 'description' => 'Return List of Users that have the specified role name (Realm Specific)', 'httpMethod' => 'GET', 'parameters' => array( @@ -4794,7 +4794,7 @@ // Roles (by ID) 'getRealmRoleById' => array( - 'uri' => 'auth/admin/realms/{realm}/roles-by-id/{role-id}', + 'uri' => 'admin/realms/{realm}/roles-by-id/{role-id}', 'description' => 'Get a specific role’s representation', 'httpMethod' => 'GET', 'parameters' => array( @@ -4814,7 +4814,7 @@ ), 'updateRealmRoleById' => array( - 'uri' => 'auth/admin/realms/{realm}/roles-by-id/{role-id}', + 'uri' => 'admin/realms/{realm}/roles-by-id/{role-id}', 'description' => 'Update the role', 'httpMethod' => 'PUT', 'parameters' => array( @@ -4834,7 +4834,7 @@ ), 'deleteRealmRoleById' => array( - 'uri' => 'auth/admin/realms/{realm}/roles-by-id/{role-id}', + 'uri' => 'admin/realms/{realm}/roles-by-id/{role-id}', 'description' => 'Delete the role', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -4854,7 +4854,7 @@ ), 'addCompositeRoleToRealmRoleByRoleId' => array( - 'uri' => 'auth/admin/realms/{realm}/roles-by-id/{role-id}/composites', + 'uri' => 'admin/realms/{realm}/roles-by-id/{role-id}/composites', 'description' => 'Add a composite to the role', 'httpMethod' => 'POST', 'parameters' => array( @@ -4881,7 +4881,7 @@ ), 'getRealmRoleCompositeRolesByRoleId' => array( - 'uri' => 'auth/admin/realms/{realm}/roles-by-id/{role-id}/composites', + 'uri' => 'admin/realms/{realm}/roles-by-id/{role-id}/composites', 'description' => 'Get composites of the role', 'httpMethod' => 'GET', 'parameters' => array( @@ -4900,7 +4900,7 @@ ), 'deleteCompositeRoleFromRealmRoleByRoleId' => array( - 'uri' => 'auth/admin/realms/{realm}/roles-by-id/{role-id}/composites', + 'uri' => 'admin/realms/{realm}/roles-by-id/{role-id}/composites', 'description' => 'Remove roles from the role’s composite', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -4927,7 +4927,7 @@ ), 'getRealmRoleCompositeRolesForClientByRoleId' => array( - 'uri' => 'auth/admin/realms/{realm}/roles-by-id/{role-id}/composites/clients/{client}', + 'uri' => 'admin/realms/{realm}/roles-by-id/{role-id}/composites/clients/{client}', 'description' => 'Get client-level roles for the client that are in the role’s composite', 'httpMethod' => 'GET', 'parameters' => array( @@ -4952,7 +4952,7 @@ ), 'getRealmRoleCompositeRolesForRealmByRoleId' => array( - 'uri' => 'auth/admin/realms/{realm}/roles-by-id/{role-id}/composites/realm', + 'uri' => 'admin/realms/{realm}/roles-by-id/{role-id}/composites/realm', 'description' => 'Get realm-level roles of the role’s composite', 'httpMethod' => 'GET', 'parameters' => array( @@ -4971,7 +4971,7 @@ ), 'getRealmRoleManagementPermissionsByRoleId' => array( - 'uri' => 'auth/admin/realms/{realm}/roles-by-id/{role-id}/management/permissions', + 'uri' => 'admin/realms/{realm}/roles-by-id/{role-id}/management/permissions', 'description' => 'Return object stating whether role Authoirzation permissions have been initialized or not and a reference', 'httpMethod' => 'GET', 'parameters' => array( @@ -4990,7 +4990,7 @@ ), 'updateRealmRoleManagementPermissionsByRoleId' => array( - 'uri' => 'auth/admin/realms/{realm}/roles-by-id/{role-id}/management/permissions', + 'uri' => 'admin/realms/{realm}/roles-by-id/{role-id}/management/permissions', 'description' => 'Update object stating whether role Authoirzation permissions have been initialized or not and a reference', 'httpMethod' => 'PUT', 'parameters' => array( @@ -5011,7 +5011,7 @@ // Users 'createUser' => array( - 'uri' => 'auth/admin/realms/{realm}/users', + 'uri' => 'admin/realms/{realm}/users', 'description' => 'Create a new user Username must be unique.', 'httpMethod' => 'POST', 'parameters' => array( @@ -5025,7 +5025,7 @@ ), 'getUserCount' => array( - 'uri' => 'auth/admin/realms/{realm}/users/count', + 'uri' => 'admin/realms/{realm}/users/count', 'description' => 'Get the number of users', 'httpMethod' => 'GET', 'parameters' => array( @@ -5070,7 +5070,7 @@ ), 'getUsers' => array( - 'uri' => 'auth/admin/realms/{realm}/users', + 'uri' => 'admin/realms/{realm}/users', 'description' => 'Get users Returns a list of users, filtered according to query parameters', 'httpMethod' => 'GET', 'parameters' => array( @@ -5132,7 +5132,7 @@ ), 'getUser' => array( - 'uri' => 'auth/admin/realms/{realm}/users/{id}', + 'uri' => 'admin/realms/{realm}/users/{id}', 'description' => 'Get representation of the user', 'httpMethod' => 'GET', 'parameters' => array( @@ -5152,7 +5152,7 @@ ), 'getUserGroups' => array( - 'uri' => 'auth/admin/realms/{realm}/users/{id}/groups', + 'uri' => 'admin/realms/{realm}/users/{id}/groups', 'description' => 'Get the user groups of a specific user', 'httpMethod' => 'GET', 'parameters' => array( @@ -5172,7 +5172,7 @@ ), 'getUserGroupsCount' => array( - 'uri' => 'auth/admin/realms/{realm}/users/{id}/groups/count', + 'uri' => 'admin/realms/{realm}/users/{id}/groups/count', 'description' => 'Get the number user groups of a specific user', 'httpMethod' => 'GET', 'parameters' => array( @@ -5192,7 +5192,7 @@ ), 'updateUser' => array( - 'uri' => 'auth/admin/realms/{realm}/users/{id}', + 'uri' => 'admin/realms/{realm}/users/{id}', 'description' => 'Update a user (Username must be unique)', 'httpMethod' => 'PUT', 'parameters' => array( @@ -5212,7 +5212,7 @@ ), 'updatePartialUser' => array( - 'uri' => 'auth/admin/realms/{realm}/users/{id}', + 'uri' => 'admin/realms/{realm}/users/{id}', 'description' => 'Update a user (Username must be unique)', 'httpMethod' => 'PATCH', 'parameters' => array( @@ -5232,7 +5232,7 @@ ), 'deleteUser' => array( - 'uri' => 'auth/admin/realms/{realm}/users/{id}', + 'uri' => 'admin/realms/{realm}/users/{id}', 'description' => 'Delete a user', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -5252,7 +5252,7 @@ ), 'executeActionsEmail' => array( - 'uri' => 'auth/admin/realms/{realm}/users/{id}/execute-actions-email', + 'uri' => 'admin/realms/{realm}/users/{id}/execute-actions-email', 'description' => 'Send a update account email to the user An email contains a link the user can click to perform a set of required actions.', 'httpMethod' => 'PUT', 'parameters' => array( @@ -5295,7 +5295,7 @@ ), 'sendVerifyEmail' => array( - 'uri' => 'auth/admin/realms/{realm}/users/{id}/send-verify-email', + 'uri' => 'admin/realms/{realm}/users/{id}/send-verify-email', 'description' => 'Send an email-verification email to the user An email contains a link the user can click to verify their email address.', 'httpMethod' => 'PUT', 'parameters' => array( @@ -5327,7 +5327,7 @@ ), 'addUserToGroup' => array( - 'uri' => 'auth/admin/realms/{realm}/users/{id}/groups/{groupId}', + 'uri' => 'admin/realms/{realm}/users/{id}/groups/{groupId}', 'description' => 'Assign a specific user to a specific group', 'httpMethod' => 'PUT', 'parameters' => array( @@ -5353,7 +5353,7 @@ ), 'deleteUserFromGroup' => array( - 'uri' => 'auth/admin/realms/{realm}/users/{id}/groups/{groupId}', + 'uri' => 'admin/realms/{realm}/users/{id}/groups/{groupId}', 'description' => 'Remove a specific user from a specific group', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -5379,7 +5379,7 @@ ), 'resetUserPassword' => array( - 'uri' => 'auth/admin/realms/{realm}/users/{id}/reset-password', + 'uri' => 'admin/realms/{realm}/users/{id}/reset-password', 'description' => 'Set up a new password for the user', 'httpMethod' => 'PUT', 'parameters' => array( @@ -5399,7 +5399,7 @@ ), 'syncUserStorage' => array( - 'uri' => 'auth/admin/realms/{realm}/user-storage/{id}/sync', + 'uri' => 'admin/realms/{realm}/user-storage/{id}/sync', 'description' => 'Trigger sync of users. Action can be "triggerFullSync" or "triggerChangedUsersSync"', 'httpMethod' => 'POST', 'parameters' => array(