fix(api): 🛂 Don't automatically remove trailing slashes from OIDC issuer URLs

This commit is contained in:
Jesse Wierzbinski 2024-06-13 11:33:07 -10:00
parent c3271ba264
commit 0359ba13c4
No known key found for this signature in database
2 changed files with 2 additions and 5 deletions

View file

@ -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"

View file

@ -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(),