Skip to content

Commit

Permalink
Merge pull request #93 from MohammadWaleed/develop
Browse files Browse the repository at this point in the history
prepare for 0.31.0
  • Loading branch information
MohammadWaleed authored May 25, 2022
2 parents 861abc6 + ec0ba4c commit 00408c4
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ Note: Ids are sent as clientScopeId or clientId and mapperId everything else is
| Remove TOTP from the user | | ❌ |
| Set up a new password for the user. | resetUserPassword | ✔️ |
| Send an email-verification email to the user An email contains a link the user can click to verify their email address. | sendVerifyEmail | ✔️ |
| Get sessions associated with the user | | ❌ |
| Get sessions associated with the user | getUserSessions | ✔ |

## [Root]()

Expand Down
2 changes: 1 addition & 1 deletion src/Admin/KeycloakClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@
* @method array getClientScopeProtocolMappersByProtocolName(array $args = array()) { @command Keycloak getClientScopeProtocolMappersByProtocolName }
* @method array createClientProtocolMappers(array $args = array()) { @command Keycloak createClientProtocolMappers }
* @method array createClientProtocolMapper(array $args = array()) { @command Keycloak createClientProtocolMapper }
* @method array getClientProtocolMappers(array $args = array()) { @command Keycloak getClientProtocolMappers }
* @method array getClientProtocolMapperById(array $args = array()) { @command Keycloak getClientProtocolMapperById }
* @method array updateClientProtocolMapper(array $args = array()) { @command Keycloak updateClientProtocolMapper }
* @method array deleteClientProtocolMapper(array $args = array()) { @command Keycloak deleteClientProtocolMapper }
Expand Down Expand Up @@ -271,6 +270,7 @@
* @method array addUserToGroup(array $args = array()) { @command Keycloak addUserToGroup }
* @method array deleteUserFromGroup(array $args = array()) { @command Keycloak deleteUserFromGroup }
* @method array resetUserPassword(array $args = array()) { @command Keycloak resetUserPassword }
* @method array getUserSessions(array $args = array()) { @command Keycloak getUserSessions }
*
* @method array syncUserStorage(array $args = array()) { @command Keycloak syncUserStorage }
*
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 @@ -5128,6 +5128,12 @@
'type' => 'string',
'required' => false,
),
'q' => array(
'location' => 'query',
'description' => 'A query to search for custom attributes, in the format \'key1:value2 key2:value2\'',
'type' => 'string',
'required' => false,
),
),
),

Expand Down Expand Up @@ -5326,6 +5332,26 @@
),
),

'getUserSessions' => array(
'uri' => 'admin/realms/{realm}/users/{id}/sessions',
'description' => 'Get sessions associated with the user',
'httpMethod' => 'GET',
'parameters' => array(
'realm' => array(
'location' => 'uri',
'description' => 'The Realm name',
'type' => 'string',
'required' => true,
),
'id' => array(
'location' => 'uri',
'description' => 'User id',
'type' => 'string',
'required' => true
)
)
),

'addUserToGroup' => array(
'uri' => 'admin/realms/{realm}/users/{id}/groups/{groupId}',
'description' => 'Assign a specific user to a specific group',
Expand Down

0 comments on commit 00408c4

Please sign in to comment.