Add email address to error message returned for OIDC validation

pull/1290/head
Herman Slatman 1 year ago
parent b02c43cf8e
commit 10958a124b
No known key found for this signature in database
GPG Key ID: F4D8A44EA0A75A4F

@ -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)
}
}

Loading…
Cancel
Save