From 34937c4e20fe72076df8d8c9bf0dc6858440379c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojta=20Stan=C4=9Bk?= Date: Tue, 15 Feb 2022 19:23:28 +0100 Subject: [PATCH] Admin server: Support different OIDC response_types --- packages/admin/src/components/Login/LoginEntrypoint.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/admin/src/components/Login/LoginEntrypoint.tsx b/packages/admin/src/components/Login/LoginEntrypoint.tsx index 6b6336d84d..e298c30d06 100644 --- a/packages/admin/src/components/Login/LoginEntrypoint.tsx +++ b/packages/admin/src/components/Login/LoginEntrypoint.tsx @@ -142,7 +142,7 @@ const LoginContainer = ({ identityProviders }: { const hasOauthResponse = useMemo(() => { const params = new URLSearchParams(window.location.search) - return params.has('state') && params.has('code') && params.has('scope') + return params.has('state') && (params.has('code') || params.has('id_token')) }, []) if (hasOauthResponse) {