From deb0cb236ea36a70272d22ae4ee91ca6950bba7f Mon Sep 17 00:00:00 2001
From: Jens L
Date: Tue, 14 Nov 2023 13:05:18 +0100
Subject: [PATCH] web/admin: always show oidc well-known URL fields when
they're set (#7560)
Signed-off-by: Jens Langhammer
---
.../admin/sources/oauth/OAuthSourceForm.ts | 51 +++++------
web/xliff/de.xlf | 21 +++++
web/xliff/en.xlf | 21 +++++
web/xliff/es.xlf | 21 +++++
web/xliff/fr.xlf | 85 ++++++++++++-------
web/xliff/pl.xlf | 21 +++++
web/xliff/pseudo-LOCALE.xlf | 21 +++++
web/xliff/tr.xlf | 21 +++++
web/xliff/zh-Hans.xlf | 67 ++++++++++-----
web/xliff/zh-Hant.xlf | 21 +++++
web/xliff/zh_TW.xlf | 21 +++++
11 files changed, 291 insertions(+), 80 deletions(-)
diff --git a/web/src/admin/sources/oauth/OAuthSourceForm.ts b/web/src/admin/sources/oauth/OAuthSourceForm.ts
index 86db82585..51b1c6e42 100644
--- a/web/src/admin/sources/oauth/OAuthSourceForm.ts
+++ b/web/src/admin/sources/oauth/OAuthSourceForm.ts
@@ -184,28 +184,31 @@ export class OAuthSourceForm extends ModelForm {
`
: html``}
- ${this.providerType.slug === ProviderTypeEnum.Openidconnect
- ? html`
-
-
-
- ${msg(
- "OIDC well-known configuration URL. Can be used to automatically configure the URLs above.",
- )}
-
-
-
+
+
+ ${msg(
+ "OIDC well-known configuration URL. Can be used to automatically configure the URLs above.",
+ )}
+
+ `
+ : html``}
+ ${this.providerType.slug === ProviderTypeEnum.Openidconnect ||
+ this.providerType.oidcJwksUrl !== ""
+ ? html`
@@ -224,7 +227,6 @@ export class OAuthSourceForm extends ModelForm {
)}
-
{
>
${msg("Raw JWKS data.")}
-
- `
+ `
: html``}
`;
diff --git a/web/xliff/de.xlf b/web/xliff/de.xlf
index a1737f42f..fb09939a9 100644
--- a/web/xliff/de.xlf
+++ b/web/xliff/de.xlf
@@ -6043,6 +6043,27 @@ Bindings to groups/users are checked against the user of the event.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+