File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
src/routes/(console)/project-[region]-[project]/auth/(providers) Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 92
92
label =" Well-Known Endpoint"
93
93
placeholder =" https://example.com/.well-known/openid-configuration"
94
94
bind:value ={wellKnownEndpoint }
95
- required />
95
+ required ={ ! authorizationEndpoint && ! tokenEndpoint && ! userinfoEndpoint } />
96
96
<InputText
97
97
id =" authorization-endpoint"
98
98
label =" Authorization Endpoint"
99
99
placeholder =" https://example.com/authorize"
100
- bind:value ={authorizationEndpoint } />
100
+ bind:value ={authorizationEndpoint }
101
+ required ={! wellKnownEndpoint } />
101
102
<InputText
102
103
id =" token-endpoint"
103
104
label =" Token Endpoint"
104
105
placeholder =" https://example.com/token"
105
- bind:value ={tokenEndpoint } />
106
+ bind:value ={tokenEndpoint }
107
+ required ={! wellKnownEndpoint } />
106
108
<InputText
107
109
id =" userinfo-endpoint"
108
110
label =" User Info Endpoint"
109
111
placeholder =" https://example.com/userinfo"
110
- bind:value ={userinfoEndpoint } />
112
+ bind:value ={userinfoEndpoint }
113
+ required ={! wellKnownEndpoint } />
111
114
112
115
<Alert .Inline status =" info" >
113
116
To complete set up, add this OAuth2 redirect URI to your {provider .name } app configuration.
120
123
<Button
121
124
disabled ={! appId ||
122
125
! clientSecret ||
123
- ! wellKnownEndpoint ||
126
+ (! wellKnownEndpoint &&
127
+ (! authorizationEndpoint || ! tokenEndpoint || ! userinfoEndpoint )) ||
124
128
(secret === provider .secret &&
125
129
enabled === provider .enabled &&
126
130
appId === provider .appId )}
You can’t perform that action at this time.
0 commit comments