Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
Chore: add a trace to the error
Browse files Browse the repository at this point in the history
  • Loading branch information
till committed Feb 10, 2022
1 parent 5b393c2 commit 74c2581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipeline/authn/authenticator_bearer_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (a *AuthenticatorBearerToken) Authenticate(r *http.Request, session *Authen
}

if len(subject) == 0 {
return helper.ErrForbidden.WithReasonf("Could not decode subject from response.")
return errors.WithStack(helper.ErrForbidden.WithReasonf("Subject field from remote endpoint is empty."))
}

session.Subject = subject
Expand Down

0 comments on commit 74c2581

Please sign in to comment.