Spaces:
Sleeping
Sleeping
coyotte508
commited on
Commit
·
4927d19
1
Parent(s):
d5eb6f7
temp: add local host redirect url
Browse files
src/routes/.well-known/oauth-cimd/+server.ts
CHANGED
|
@@ -19,7 +19,11 @@ export const GET = ({ url }) => {
|
|
| 19 |
client_id: new URL(url, config.PUBLIC_ORIGIN || url.origin).toString(),
|
| 20 |
client_name: config.PUBLIC_APP_NAME,
|
| 21 |
client_uri: `${config.PUBLIC_ORIGIN || url.origin}${base}`,
|
| 22 |
-
redirect_uris: [
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
token_endpoint_auth_method: "none",
|
| 24 |
scopes: OIDConfig.SCOPES,
|
| 25 |
}),
|
|
|
|
| 19 |
client_id: new URL(url, config.PUBLIC_ORIGIN || url.origin).toString(),
|
| 20 |
client_name: config.PUBLIC_APP_NAME,
|
| 21 |
client_uri: `${config.PUBLIC_ORIGIN || url.origin}${base}`,
|
| 22 |
+
redirect_uris: [
|
| 23 |
+
new URL("/login/callback", config.PUBLIC_ORIGIN || url.origin).toString(),
|
| 24 |
+
// todo: remove this
|
| 25 |
+
`http://localhost:5173/login/callback`,
|
| 26 |
+
],
|
| 27 |
token_endpoint_auth_method: "none",
|
| 28 |
scopes: OIDConfig.SCOPES,
|
| 29 |
}),
|