mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-11 01:42:06 -04:00
Fix a dropped Okta error (#6592)
This commit is contained in:
parent
8f44742b97
commit
126ea804e5
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue