use of com.okta.authn.sdk.example.views.authn.RecoveryView in project okta-auth-java by okta.
the class LoginResource method getRecoveryView.
@GET
@Path("/recovery")
public RecoveryView getRecoveryView() {
AuthenticationResponse previousAuthResult = getPreviousAuthResult();
String question = previousAuthResult.getUser().getRecoveryQuestion().get("question");
return new RecoveryView(question);
}
Aggregations