Skip to content

Commit

Permalink
Merge pull request #82 from MohammadWaleed/develop
Browse files Browse the repository at this point in the history
prepare for 0.29.0
  • Loading branch information
MohammadWaleed authored Mar 1, 2022
2 parents 6542bd6 + 7db48a5 commit 523bada
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Admin/KeycloakClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@
* @method array deleteUserFromGroup(array $args = array()) { @command Keycloak deleteUserFromGroup }
* @method array resetUserPassword(array $args = array()) { @command Keycloak resetUserPassword }
*
* @method array syncUserStorage(array $args = array()) { @command Keycloak syncUserStorage }
*
*/

class KeycloakClient extends GuzzleClient
Expand Down Expand Up @@ -327,7 +329,7 @@ public static function factory($config = array())
$description = new Description($serviceDescription);

// Create the new Keycloak Client with our Configuration
return new self(
return new static(
new Client($config),
$description,
new Serializer($description, [
Expand Down
26 changes: 26 additions & 0 deletions src/Admin/Resources/keycloak-1_0.php
Original file line number Diff line number Diff line change
Expand Up @@ -5398,5 +5398,31 @@
) + $CredentialRepresentation,
),

'syncUserStorage' => array(
'uri' => 'auth/admin/realms/{realm}/user-storage/{id}/sync',
'description' => 'Trigger sync of users. Action can be "triggerFullSync" or "triggerChangedUsersSync"',
'httpMethod' => 'POST',
'parameters' => array(
'realm' => array(
'location' => 'uri',
'description' => 'The Realm name',
'type' => 'string',
'required' => true,
),
'id' => array(
'location' => 'uri',
'description' => 'Storage id',
'type' => 'string',
'required' => true
),
'action' => array(
'location' => 'query',
'description' => 'Action',
'type' => 'string',
'required' => false
)
)
),

) //End of Operations Array
);//End of return array

0 comments on commit 523bada

Please sign in to comment.