fix: [behavior:authKeycloak] Correctly URLEncode username

develop-unstable
Sami Mokaddem 2023-01-17 09:25:43 +01:00
parent fc31ce8b08
commit 9ae446bb5d
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ class AuthKeycloakBehavior extends Behavior
public function getUserIdByUsername(string $username)
{
$response = $this->restApiRequest(
'%s/admin/realms/%s/users/?username=' . urlencode($username),
'%s/admin/realms/%s/users/?username=' . $this->urlencodeEscapeForSprintf($username),
[],
'GET'
);