From 002cdf966c00b0d92efd94b9989e8819594e64c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Wed, 8 Jul 2026 14:50:23 +0200 Subject: [PATCH] Fix backwards compatibility --- src/Appwrite/Auth/OAuth2/Oidc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Appwrite/Auth/OAuth2/Oidc.php b/src/Appwrite/Auth/OAuth2/Oidc.php index 296e5f4c79..d5b54dfc59 100644 --- a/src/Appwrite/Auth/OAuth2/Oidc.php +++ b/src/Appwrite/Auth/OAuth2/Oidc.php @@ -312,7 +312,9 @@ class Oidc extends OAuth2 protected function getUserinfoEndpoint(): string { $secret = $this->getAppSecret(); - $endpoint = $secret['userInfoEndpoint'] ?? ''; + // Read the legacy lowercase `userinfoEndpoint` key as a fallback so that + // OIDC configs stored via the old generic oauth2 PATCH endpoint keep working. + $endpoint = $secret['userInfoEndpoint'] ?? $secret['userinfoEndpoint'] ?? ''; if (!empty($endpoint)) { return $endpoint; }