Add email address to error message returned for OIDC validation

This commit is contained in:
Herman Slatman 2023-02-23 13:24:09 +01:00
parent b02c43cf8e
commit 10958a124b
No known key found for this signature in database
GPG key ID: F4D8A44EA0A75A4F

View file

@ -230,7 +230,7 @@ func (o *OIDC) ValidatePayload(p openIDPayload) error {
}
}
if !found {
return errs.Unauthorized("validatePayload: failed to validate oidc token payload: email is not allowed")
return errs.Unauthorized("validatePayload: failed to validate oidc token payload: email %q is not allowed", p.Email)
}
}