mirror of
https://github.com/versia-pub/server.git
synced 2025-12-07 00:48:18 +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]]
|
||||
# name = "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/"
|
||||
# client_id = "XXXX"
|
||||
# client_secret = "XXXXX"
|
||||
|
|
|
|||
|
|
@ -98,11 +98,7 @@ export const configValidator = z.object({
|
|||
z.object({
|
||||
name: z.string().min(1),
|
||||
id: z.string().min(1),
|
||||
url: z
|
||||
.string()
|
||||
.min(1)
|
||||
// Remove trailing slashes
|
||||
.transform((arg) => arg.replace(/\/$/, "")),
|
||||
url: z.string().min(1),
|
||||
client_id: z.string().min(1),
|
||||
client_secret: z.string().min(1),
|
||||
icon: z.string().min(1).optional(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue