Skip to content

Commit

Permalink
Merge pull request #96 from MohammadWaleed/develop
Browse files Browse the repository at this point in the history
prepare for 0.32.0
  • Loading branch information
MohammadWaleed authored Sep 20, 2022
2 parents 00408c4 + f73685b commit 542854a
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -588,9 +588,9 @@ Note: Ids are sent as clientScopeId or clientId and mapperId everything else is
| Revoke consent and offline tokens for particular client from user | | ❌ |
| Disable all credentials for a user of a specific type | | ❌ |
| Send a update account email to the user An email contains a link the user can click to perform a set of required actions. | executeActionsEmail | ✔️ |
| Get social logins associated with the user | | |
| Add a social login provider to the user | | |
| Remove a social login provider from user | | |
| Get social logins associated with the user | | |
| Add a social login provider to the user | | |
| Remove a social login provider from user | | |
| GET /{realm}/users/{id}/groups | getUserGroups | ✔️ |
| GET /{realm}/users/{id}/groups/count | getUserGroupsCount | ✔️ |
| PUT /{realm}/users/{id}/groups/{groupId} | addUserToGroup | ✔️ |
Expand Down
4 changes: 4 additions & 0 deletions src/Admin/KeycloakClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@
*
* @method array syncUserStorage(array $args = array()) { @command Keycloak syncUserStorage }
*
* @method array getSocialLogins(array $args = array()) { @command Keycloak getSocialLogins }
* @method array addSocialLogin(array $args = array()) { @command Keycloak getSocialLogins }
* @method array removeSocialLogin(array $args = array()) { @command Keycloak getSocialLogins }
*
*/

class KeycloakClient extends GuzzleClient
Expand Down
70 changes: 69 additions & 1 deletion src/Admin/Resources/keycloak-1_0.php
Original file line number Diff line number Diff line change
Expand Up @@ -5449,6 +5449,74 @@
)
)
),

'getSocialLogins' => array(
'uri' => 'admin/realms/{realm}/users/{id}/federated-identity',
'description' => 'Get social logins 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,
),
)
),
'removeSocialLogin' => array(
'uri' => 'admin/realms/{realm}/users/{id}/federated-identity/{providerId}',
'description' => 'Remove social login associated with the user',
'httpMethod' => 'DELETE',
'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,
),
'providerId' => array(
'location' => 'uri',
'description' => 'The Provider ID',
'type' => 'string',
'required' => true,
),
)
),
'addSocialLogin' => array(
'uri' => 'admin/realms/{realm}/users/{id}/federated-identity/{providerId}',
'description' => 'Add social login associated with the user',
'httpMethod' => 'POST',
'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,
),
'providerId' => array(
'location' => 'uri',
'description' => 'The Provider ID',
'type' => 'string',
'required' => true,
),
) + $FederatedIdentityRepresentation,
),
) //End of Operations Array
);//End of return array

0 comments on commit 542854a

Please sign in to comment.