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

Add sessionToken to dict where step-up code expects it #448

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

aogail
Copy link
Contributor

@aogail aogail commented Feb 8, 2024

Description

Sometimes, Okta requires a step-up authentication when accessing the AWS Okta application. The Duo Universal prompt support worked in the case where step-up was not required, but returned a session data structure that the step-up handling code did not expect. I've changed the Duo Universal Prompt auth to return sessionToken where OktaClassicClient.get_saml_response() expects to find it for use in step-up authentication.

Related Issue

#447

Motivation and Context

Authentication doesn't work if Okta requires step-up auth with Duo Universal Prompt enabled.

How Has This Been Tested?

We had a few people at our org encounter this issue after disabling Duo's traditional prompt in our Okta tenant. I found the additional step-up authentication code path when debugging with them, and realized the data structure I had returned from Univeral Prompt implementation was different than the step-up code expected. Adding the session token at the expected key resolved the issue for them.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@aogail
Copy link
Contributor Author

aogail commented Feb 8, 2024

Apparently I ran the tests from the wrong branch x.x. Will fix and update the PR.

Sometimes, Okta requires a step-up authentication when accessing the AWS Okta application. The Duo Universal prompt support worked in the case where step-up was not required, but returned a session data structure that the step-up handling code did not expect. I've changed the Duo Universal Prompt auth to return sessionToken where get_saml_response() expects to find it for use in step-up authentication.
@aogail aogail force-pushed the bugfix/universalPromptStepUp branch from 6100c13 to e42f409 Compare February 8, 2024 20:17
@epierce epierce merged commit 0c61553 into Nike-Inc:master Feb 12, 2024
7 checks passed
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