Skip to content

Commit

Permalink
Revert "revert unrelated changes"
Browse files Browse the repository at this point in the history
This reverts commit 52c44b2.
  • Loading branch information
silver886 committed Aug 26, 2023
1 parent afc2d52 commit edf7c38
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/provider/okta/okta.go
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,12 @@ func verifyMfa(oc *Client, oktaOrgHost string, loginDetails *creds.LoginDetails,
return "", err
}
body = updatedContext.challengeResponseBody
if gjson.Get(body, "status").String() == "MFA_CHALLENGE" {
correctAnswer := gjson.Get(body, "_embedded.factor._embedded.challenge.correctAnswer").String()
if correctAnswer != "" {
log.Printf("Correct Answer: %s", correctAnswer)
}
}

case "TIMEOUT":
log.Println(" Timeout")
Expand Down

0 comments on commit edf7c38

Please sign in to comment.