diff --git a/pkg/iam/auth_service.go b/pkg/iam/auth_service.go index 2e7807ff4..f93dbc6d8 100644 --- a/pkg/iam/auth_service.go +++ b/pkg/iam/auth_service.go @@ -449,7 +449,7 @@ func (s AuthService) CreateIdentityWithPassword( return identity, session, err } -func (s AuthService) OpenSessionWithSAML(ctx context.Context, identityID gid.GID, organizationID gid.GID) (*coredata.Session, error) { +func (s AuthService) OpenSessionWithSAML(ctx context.Context, identityID 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 9339341db..9a8383353 100644 --- a/pkg/server/api/connect/v1/saml_handler.go +++ b/pkg/server/api/connect/v1/saml_handler.go @@ -74,7 +74,7 @@ func (h *SAMLHandler) ConsumeHandler(w http.ResponseWriter, r *http.Request) { switch { case rootSession == nil: - rootSession, err = h.iam.AuthService.OpenSessionWithSAML(ctx, user.ID, membership.OrganizationID) + rootSession, err = h.iam.AuthService.OpenSessionWithSAML(ctx, user.ID) if err != nil { h.logger.ErrorCtx(ctx, "cannot open root session", log.Error(err)) h.renderInternalServerError(w, r) @@ -88,7 +88,7 @@ func (h *SAMLHandler) ConsumeHandler(w http.ResponseWriter, r *http.Request) { return } - rootSession, err = h.iam.AuthService.OpenSessionWithSAML(ctx, user.ID, membership.OrganizationID) + rootSession, err = h.iam.AuthService.OpenSessionWithSAML(ctx, user.ID) if err != nil { h.logger.ErrorCtx(ctx, "cannot open root session", log.Error(err)) h.renderInternalServerError(w, r)