From 811bebca482fe94026cf1f62a753c5271620a010 Mon Sep 17 00:00:00 2001 From: Bryan Frimin Date: Fri, 19 Dec 2025 15:40:49 +0100 Subject: [PATCH] Rename open session for saml Signed-off-by: Bryan Frimin --- pkg/iam/auth_service.go | 2 +- pkg/server/api/connect/v1/saml_handler.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/iam/auth_service.go b/pkg/iam/auth_service.go index 5ba71e9f0..3e9a0c201 100644 --- a/pkg/iam/auth_service.go +++ b/pkg/iam/auth_service.go @@ -410,7 +410,7 @@ func (s AuthService) CreateIdentityWithPassword( return user, session, err } -func (s AuthService) OpenSessionWithoutPassword(ctx context.Context, userID gid.GID, organizationID gid.GID) (*coredata.Session, error) { +func (s AuthService) OpenSessionWithSAML(ctx context.Context, userID gid.GID, organizationID gid.GID) (*coredata.Session, error) { session := &coredata.Session{} err := s.pg.WithTx( diff --git a/pkg/server/api/connect/v1/saml_handler.go b/pkg/server/api/connect/v1/saml_handler.go index e2b574b5e..5a4354f0c 100644 --- a/pkg/server/api/connect/v1/saml_handler.go +++ b/pkg/server/api/connect/v1/saml_handler.go @@ -60,7 +60,7 @@ func (h *SAMLHandler) ConsumeHandler(w http.ResponseWriter, r *http.Request) { session := SessionFromContext(ctx) if session == nil { - h.iam.AuthService.OpenSessionWithoutPassword(ctx, user.ID, membership.OrganizationID) + h.iam.AuthService.OpenSessionWithSAML(ctx, user.ID, membership.OrganizationID) } // TODO open or update the organization session