providers/oauth2: correctly advertise supported response_modes_supported
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		| @ -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", | ||||
|  | ||||
| @ -259,7 +259,7 @@ export class SearchSelect<T> 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", | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer