Fix a dropped Okta error (#6592)

This commit is contained in:
Jeff Mitchell 2019-04-16 13:05:50 -04:00 committed by GitHub
parent 8f44742b97
commit 126ea804e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -182,6 +182,9 @@ func (b *backend) Login(ctx context.Context, req *logical.Request, username stri
switch result.FactorResult {
case "WAITING":
verifyReq, err := client.NewRequest("POST", requestPath, payload)
if err != nil {
return nil, logical.ErrorResponse(fmt.Sprintf("okta auth failed creating verify request: %v", err)), nil, nil
}
rsp, err := client.Do(verifyReq, &result)
if err != nil {
return nil, logical.ErrorResponse(fmt.Sprintf("Okta auth failed checking loop: %v", err)), nil, nil