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) {