Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-1647589: Fix NullPointerException when MFA is enabled in Okta and native Okta authentication is used #1887

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sfc-gh-wfateem
Copy link
Collaborator

@sfc-gh-wfateem sfc-gh-wfateem commented Sep 4, 2024

@sfc-gh-wfateem sfc-gh-wfateem requested a review from a team as a code owner September 4, 2024 17:56
@sfc-gh-wfateem sfc-gh-wfateem force-pushed the SNOW-1647589-okta-nullpointer branch from 75a32a1 to 22de3f1 Compare September 4, 2024 18:28
// session token is in the data field of the returned json response
final JsonNode jsonNode = mapper.readTree(idpResponse);
isMfaEnabledInOkta = jsonNode.get("status").asText().equals("MFA_REQUIRED");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sfc-gh-wfateem could you provide a test (manual/ignored) for this situation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants