mirror of
https://github.com/versia-pub/server.git
synced 2025-12-07 08:48:19 +01:00
fix(api): 🛂 Don't automatically remove trailing slashes from OIDC issuer URLs
This commit is contained in:
parent
c3271ba264
commit
0359ba13c4
|
|
@ -65,6 +65,7 @@ forced = false
|
||||||
[[oidc.providers]]
|
[[oidc.providers]]
|
||||||
# name = "CPlusPatch ID"
|
# name = "CPlusPatch ID"
|
||||||
# id = "cpluspatch-id"
|
# id = "cpluspatch-id"
|
||||||
|
# This MUST match the provider's issuer URI, including the trailing slash (or lack thereof)
|
||||||
# url = "https://id.cpluspatch.com/application/o/lysand-testing/"
|
# url = "https://id.cpluspatch.com/application/o/lysand-testing/"
|
||||||
# client_id = "XXXX"
|
# client_id = "XXXX"
|
||||||
# client_secret = "XXXXX"
|
# client_secret = "XXXXX"
|
||||||
|
|
|
||||||
|
|
@ -98,11 +98,7 @@ export const configValidator = z.object({
|
||||||
z.object({
|
z.object({
|
||||||
name: z.string().min(1),
|
name: z.string().min(1),
|
||||||
id: z.string().min(1),
|
id: z.string().min(1),
|
||||||
url: z
|
url: z.string().min(1),
|
||||||
.string()
|
|
||||||
.min(1)
|
|
||||||
// Remove trailing slashes
|
|
||||||
.transform((arg) => arg.replace(/\/$/, "")),
|
|
||||||
client_id: z.string().min(1),
|
client_id: z.string().min(1),
|
||||||
client_secret: z.string().min(1),
|
client_secret: z.string().min(1),
|
||||||
icon: z.string().min(1).optional(),
|
icon: z.string().min(1).optional(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue