diff --git a/pkg/provider/okta/okta.go b/pkg/provider/okta/okta.go index 042f029c6..60c1cea50 100644 --- a/pkg/provider/okta/okta.go +++ b/pkg/provider/okta/okta.go @@ -799,6 +799,10 @@ func verifyMfa(oc *Client, oktaOrgHost string, loginDetails *creds.LoginDetails, switch gjson.Get(body, "factorResult").String() { case "WAITING": + correctAnswer := gjson.Get(body, "_embedded.factor._embedded.challenge.correctAnswer") + if correctAnswer.Exists() { + log.Printf("Number Challenge Value is %d", correctAnswer.Int()) + } time.Sleep(3 * time.Second) logger.Debug("Waiting for user to authorize login") updatedContext, err := getMfaChallengeContext(oc, mfaOption, resp)