mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Merge pull request #10589 from appwrite/ser-377
Handle OIDC well-known endpoint errors
This commit is contained in:
2 files changed
+74
No files matched your search
@@ -273,6 +273,9 @@ class Oidc extends OAuth2
|
||||
{
|
||||
if (empty($this->wellKnownConfiguration)) {
|
||||
$response = $this->request('GET', $this->getWellKnownEndpoint());
|
||||
if (empty($response)) {
|
||||
throw new Exception('Invalid well-known configuration');
|
||||
}
|
||||
$this->wellKnownConfiguration = \json_decode($response, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user