Skip to content

Commit

Permalink
Revert Authenticate method
Browse files Browse the repository at this point in the history
Signed-off-by: nyagamunene <[email protected]>
  • Loading branch information
nyagamunene committed Nov 13, 2024
1 parent d74989c commit 9f763c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/authn/authsvc/authn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9f763c8

Please sign in to comment.