Skip to content

Commit b5151b4

Browse files
committed
fix: added chnages
1 parent 1bd6836 commit b5151b4

File tree

1 file changed

+9
-5
lines changed
  • src/routes/(console)/project-[region]-[project]/auth/(providers)

1 file changed

+9
-5
lines changed

src/routes/(console)/project-[region]-[project]/auth/(providers)/oidcOAuth.svelte

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,22 +92,25 @@
9292
label="Well-Known Endpoint"
9393
placeholder="https://example.com/.well-known/openid-configuration"
9494
bind:value={wellKnownEndpoint}
95-
required />
95+
required={!authorizationEndpoint && !tokenEndpoint && !userinfoEndpoint} />
9696
<InputText
9797
id="authorization-endpoint"
9898
label="Authorization Endpoint"
9999
placeholder="https://example.com/authorize"
100-
bind:value={authorizationEndpoint} />
100+
bind:value={authorizationEndpoint}
101+
required={!wellKnownEndpoint} />
101102
<InputText
102103
id="token-endpoint"
103104
label="Token Endpoint"
104105
placeholder="https://example.com/token"
105-
bind:value={tokenEndpoint} />
106+
bind:value={tokenEndpoint}
107+
required={!wellKnownEndpoint} />
106108
<InputText
107109
id="userinfo-endpoint"
108110
label="User Info Endpoint"
109111
placeholder="https://example.com/userinfo"
110-
bind:value={userinfoEndpoint} />
112+
bind:value={userinfoEndpoint}
113+
required={!wellKnownEndpoint} />
111114

112115
<Alert.Inline status="info">
113116
To complete set up, add this OAuth2 redirect URI to your {provider.name} app configuration.
@@ -120,7 +123,8 @@
120123
<Button
121124
disabled={!appId ||
122125
!clientSecret ||
123-
!wellKnownEndpoint ||
126+
(!wellKnownEndpoint &&
127+
(!authorizationEndpoint || !tokenEndpoint || !userinfoEndpoint)) ||
124128
(secret === provider.secret &&
125129
enabled === provider.enabled &&
126130
appId === provider.appId)}

0 commit comments

Comments
 (0)