saml session storage: do not require id

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-05-11 11:35:14 +02:00
parent 14f384631d
commit 1fae1f57c9
2 changed files with 5 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-app-api': patch
---
Fix SAML session schema to no longer require the (deprecated) id, to unbreak session data storage.
@@ -34,7 +34,6 @@ export const samlSessionSchema: z.ZodSchema<SamlSession> = z.object({
picture: z.string().optional(),
}),
backstageIdentity: z.object({
id: z.string(),
token: z.string(),
identity: z.object({
type: z.literal('user'),