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

Getting Exception in thread "main" org.json.JSONException: JSONObject["sessionToken"] not found. #382

Open
pranaj-roy opened this issue Aug 16, 2021 · 2 comments

Comments

@pranaj-roy
Copy link

Setting up using Windows machine

I have been trying to setup the okta-awsCli based caller identity, it always lands me to an error related to SMS factor based Authentication and then looks up for some session Token, which is maybe not found and hence an exception occurs, which then stops the command execution there abruptly. I have already configured the config.properties file to use TOTP based MFA but seems like that is not getting picked up. I am in need of bit of help here.

MicrosoftTeams-image (29)

I have configured following values in config.properties file -
OKTA_ORG=mgmresorts.okta.com

      OKTA_AWS_APP_URL

      OKTA_AWS_REGION

      OKTA_USERNAME

      OKTA_PROFILE=default 

      OKTA_MFA_CHOICE=OKTA.token:software:totp

I used jdk-11 for this.

@pranaj-roy pranaj-roy changed the title SMS Factor Authentication Enter 'change factor' to use a different factor Exception in thread "main" org.json.JSONException: JSONObject["sessionToken"] not found. Exception in thread "main" org.json.JSONException: JSONObject["sessionToken"] not found. Aug 16, 2021
@pranaj-roy pranaj-roy changed the title Exception in thread "main" org.json.JSONException: JSONObject["sessionToken"] not found. Getting Exception in thread "main" org.json.JSONException: JSONObject["sessionToken"] not found. Aug 17, 2021
@PavanKonda
Copy link

Is this issue resolved , Even I facing the same issue , please help me to resolve the issue

@RomanPavelko
Copy link

Faced this issue today. SMS MFA crashes all the time. I added additional method to MFA in my OKTA profile which was "Security Question" and I was able to proceed selecting it during script execution.

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

No branches or pull requests

3 participants