From 43f22a9495ddcbdaec39ec13169ef170446874c7 Mon Sep 17 00:00:00 2001 From: nyagamunene Date: Wed, 13 Nov 2024 13:52:26 +0300 Subject: [PATCH] Revert Authenticate method Signed-off-by: nyagamunene --- pkg/authn/authsvc/authn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/authn/authsvc/authn.go b/pkg/authn/authsvc/authn.go index fb04d3a5dbd..5eec690a72a 100644 --- a/pkg/authn/authsvc/authn.go +++ b/pkg/authn/authsvc/authn.go @@ -43,7 +43,7 @@ func (a authentication) Authenticate(ctx context.Context, token string) (authn.S return authn.Session{}, errors.Wrap(errors.ErrAuthentication, err) } - return authn.Session{Type: authn.AccessToken, ID: res.GetId(), UserID: res.GetUserId(), DomainID: res.GetDomainId()}, nil + return authn.Session{Type: authn.AccessToken, DomainUserID: res.GetId(), UserID: res.GetUserId(), DomainID: res.GetDomainId()}, nil } func (a authentication) AuthenticatePAT(ctx context.Context, token string) (authn.Session, error) {