From eaaf6deca4b317b2702a3a914da5b17c00965d16 Mon Sep 17 00:00:00 2001 From: Bryan Frimin Date: Wed, 29 Oct 2025 20:20:40 +0100 Subject: [PATCH] Fix missing session auth info Signed-off-by: Bryan Frimin --- pkg/auth/service.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkg/auth/service.go b/pkg/auth/service.go index 8d055e74f..af993dfb3 100644 --- a/pkg/auth/service.go +++ b/pkg/auth/service.go @@ -290,7 +290,10 @@ func (s Service) SignUp( session := &coredata.Session{ ID: gid.New(gid.NilTenant, coredata.SessionEntityType), UserID: user.ID, - Data: coredata.SessionData{}, + Data: coredata.SessionData{ + PasswordAuthenticated: true, + SAMLAuthenticatedOrgs: make(map[string]coredata.SAMLAuthInfo), + }, ExpiredAt: now.Add(24 * time.Hour * 7), // 7 days, CreatedAt: now, UpdatedAt: now, @@ -917,7 +920,10 @@ func (s Service) SignupFromInvitation( session = &coredata.Session{ ID: gid.New(gid.NilTenant, coredata.SessionEntityType), UserID: user.ID, - Data: coredata.SessionData{}, + Data: coredata.SessionData{ + PasswordAuthenticated: true, + SAMLAuthenticatedOrgs: make(map[string]coredata.SAMLAuthInfo), + }, ExpiredAt: now.Add(24 * time.Hour * 7), CreatedAt: now, UpdatedAt: now,