From a0131c9def3a73f7c283b1028d39a3164d611f55 Mon Sep 17 00:00:00 2001 From: El-Cesarito <59838014+El-Cesarito@users.noreply.github.com> Date: Wed, 28 Jul 2021 09:28:11 -0400 Subject: [PATCH 1/5] add sendVerifyEmail --- src/Admin/KeycloakClient.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Admin/KeycloakClient.php b/src/Admin/KeycloakClient.php index 025dfba..a18b842 100644 --- a/src/Admin/KeycloakClient.php +++ b/src/Admin/KeycloakClient.php @@ -267,6 +267,7 @@ * @method array updatePartialUser(array $args = array()) { @command Keycloak updatePartialUser } * @method array deleteUser(array $args = array()) { @command Keycloak deleteUser } * @method array executeActionsEmail(array $args = array()) { @command Keycloak executeActionsEmail } + * @method array sendVerifyEmail(array $args = array()) { @command Keycloak sendVerifyEmail } * @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 } From fd37a3fa2ca4a60c5c9cd5bdd55312c5181951e4 Mon Sep 17 00:00:00 2001 From: El-Cesarito <59838014+El-Cesarito@users.noreply.github.com> Date: Wed, 28 Jul 2021 09:33:32 -0400 Subject: [PATCH 2/5] add sendVerifyEmail --- src/Admin/Resources/keycloak-1_0.php | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/Admin/Resources/keycloak-1_0.php b/src/Admin/Resources/keycloak-1_0.php index ce79209..479de2a 100644 --- a/src/Admin/Resources/keycloak-1_0.php +++ b/src/Admin/Resources/keycloak-1_0.php @@ -5256,6 +5256,38 @@ ), ), ), + + 'sendVerifyEmail' => array( + 'uri' => 'auth/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( + 'realm' => array( + 'location' => 'uri', + 'description' => 'The Realm name', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'uri', + 'description' => 'User id', + 'type' => 'string', + 'required' => true, + ), + 'client_id' => array( + 'location' => 'query', + 'description' => 'Client id', + 'type' => 'string', + 'required' => false, + ), + 'redirect_uri' => array( + 'location' => 'query', + 'description' => 'Redirect uri', + 'type' => 'string', + 'required' => false, + ), + ), + ), 'addUserToGroup' => array( 'uri' => 'auth/admin/realms/{realm}/users/{id}/groups/{groupId}', From 7894b3f9b4a8102c15db9721eff7be902764840c Mon Sep 17 00:00:00 2001 From: El-Cesarito <59838014+El-Cesarito@users.noreply.github.com> Date: Wed, 28 Jul 2021 09:34:56 -0400 Subject: [PATCH 3/5] add sendVerifyEmail --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2a26850..6139485 100644 --- a/README.md +++ b/README.md @@ -596,7 +596,7 @@ Note: Ids are sent as clientScopeId or clientId and mapperId everything else is | Get offline sessions associated with the user and client | | ❌ | | 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. | | ❌ | +| Send an email-verification email to the user An email contains a link the user can click to verify their email address. | | ✔️ | | Get sessions associated with the user | | ❌ | ## [Root]() From 14bc0bf79412e939a80305aa72a7bbf5e04dd2ac Mon Sep 17 00:00:00 2001 From: El-Cesarito <59838014+El-Cesarito@users.noreply.github.com> Date: Wed, 28 Jul 2021 10:28:40 -0400 Subject: [PATCH 4/5] update readme for sendVerifyEmail --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6139485..c03d57e 100644 --- a/README.md +++ b/README.md @@ -596,7 +596,7 @@ Note: Ids are sent as clientScopeId or clientId and mapperId everything else is | Get offline sessions associated with the user and client | | ❌ | | 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. | | ✔️ | +| 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 | | ❌ | ## [Root]() From 9d085f76e954033d70e3e8bd18b7e372ea396719 Mon Sep 17 00:00:00 2001 From: Konstantin Grachev Date: Sun, 22 Aug 2021 16:26:52 +0300 Subject: [PATCH 5/5] Add missing return to KeycloakClient::getBaseUri method --- src/Admin/KeycloakClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Admin/KeycloakClient.php b/src/Admin/KeycloakClient.php index 025dfba..cd10455 100644 --- a/src/Admin/KeycloakClient.php +++ b/src/Admin/KeycloakClient.php @@ -366,7 +366,7 @@ public function setBaseUri($baseUri) */ public function getBaseUri() { - $this->getConfig('baseUri'); + return $this->getConfig('baseUri'); }