OIDC: Allow to add query parameters to Authorization URL (#4791)

Co-authored-by: Mira <weller@rami.io>
This commit is contained in:
Martin Gross
2025-01-30 13:39:31 +01:00
committed by GitHub
parent 26e7fe1938
commit a1100412ff
2 changed files with 19 additions and 1 deletions

View File

@@ -1043,6 +1043,15 @@ class SSOProviderForm(I18nModelForm):
label=pgettext_lazy('sso_oidc', 'Phone field'),
required=False,
)
config_oidc_query_parameters = forms.CharField(
label=pgettext_lazy('sso_oidc', 'Query parameters'),
help_text=pgettext_lazy('sso_oidc', 'Optional query parameters, that will be added to calls to '
'the authorization endpoint. Enter as: {example}'.format(
example='<code>param1=value1&amp;param2=value2</code>'
),
),
required=False,
)
class Meta:
model = CustomerSSOProvider