mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix(api): 🛂 Fix incorrect redirect URI passed to external OIDC providers, normalize issuer URL
This commit is contained in:
parent
dae37d47a3
commit
b3bace4d53
3 changed files with 12 additions and 4 deletions
|
|
@ -99,7 +99,11 @@ export const configValidator = z.object({
|
|||
z.object({
|
||||
name: z.string().min(1),
|
||||
id: z.string().min(1),
|
||||
url: z.string().min(1),
|
||||
url: z
|
||||
.string()
|
||||
.min(1)
|
||||
// Remove trailing slashes
|
||||
.transform((arg) => arg.replace(/\/$/, "")),
|
||||
client_id: z.string().min(1),
|
||||
client_secret: z.string().min(1),
|
||||
icon: z.string().min(1).optional(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue