Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e890a74 authored by Fahim Salam Chowdhury's avatar Fahim Salam Chowdhury 👽
Browse files

fix: sso logout expected result code

keycloak documentation mention /logout should return 201, but it
actually return 204.
parent 430c66c4
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@ class SSOService {
		$url = $this->ssoConfig['admin_rest_api_url'] . self::USERS_ENDPOINT . '/' . $this->currentUserId . '/logout';

		$this->logger->debug('logout calling SSO API with url: '. $url);
		$this->callSSOAPI($url, 'POST', [], 201);
		$this->callSSOAPI($url, 'POST', [], 204);
	}

	private function getCredentialIds() : array {