Merge pull request #10589 from appwrite/ser-377

Handle OIDC well-known endpoint errors
This commit is contained in:
Matej Bačo authored and GitHub committed 2025-10-03 10:44:38 +02:00
commit 59d5c49818
2 files changed
+74

No files matched your search

+3
View File
@@ -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);
}