forked from TrueCloudLab/certificates
Add email address to error message returned for OIDC validation
This commit is contained in:
parent
b02c43cf8e
commit
10958a124b
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ func (o *OIDC) ValidatePayload(p openIDPayload) error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if !found {
|
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…
Reference in a new issue