From e887a315be115e527335cbbab038d4b25e63b319 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 4 Jan 2023 10:21:34 +0100 Subject: [PATCH] providers/oauth2: correctly advertise supported response_modes_supported Signed-off-by: Jens Langhammer --- authentik/providers/oauth2/views/provider.py | 12 +++++++++++- web/src/elements/forms/SearchSelect.ts | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/authentik/providers/oauth2/views/provider.py b/authentik/providers/oauth2/views/provider.py index 7cdd0b781..62e993855 100644 --- a/authentik/providers/oauth2/views/provider.py +++ b/authentik/providers/oauth2/views/provider.py @@ -17,7 +17,12 @@ from authentik.providers.oauth2.constants import ( GRANT_TYPE_REFRESH_TOKEN, SCOPE_OPENID, ) -from authentik.providers.oauth2.models import OAuth2Provider, ResponseTypes, ScopeMapping +from authentik.providers.oauth2.models import ( + OAuth2Provider, + ResponseMode, + ResponseTypes, + ScopeMapping, +) from authentik.providers.oauth2.utils import cors_allow LOGGER = get_logger() @@ -73,6 +78,11 @@ class ProviderInfoView(View): ResponseTypes.CODE_ID_TOKEN, ResponseTypes.CODE_ID_TOKEN_TOKEN, ], + "response_modes_supported": [ + ResponseMode.QUERY, + ResponseMode.FRAGMENT, + ResponseMode.FORM_POST, + ], "jwks_uri": self.request.build_absolute_uri( reverse( "authentik_providers_oauth2:jwks", diff --git a/web/src/elements/forms/SearchSelect.ts b/web/src/elements/forms/SearchSelect.ts index 547484a39..8df447880 100644 --- a/web/src/elements/forms/SearchSelect.ts +++ b/web/src/elements/forms/SearchSelect.ts @@ -259,7 +259,7 @@ export class SearchSelect extends AKElement { this.renderMenu(); }} @blur=${(ev: FocusEvent) => { - // Check if we're loosing focus to one of our dropdown items, and if such don't blur + // Check if we're losing focus to one of our dropdown items, and if such don't blur if (ev.relatedTarget instanceof HTMLButtonElement) { const parentMenu = ev.relatedTarget.closest( "ul.pf-c-dropdown__menu.pf-m-static",