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

breaking change: do not throw IDX responses as errors #1205

Closed
wants to merge 6 commits into from

Conversation

aarongranick-okta
Copy link
Contributor

@aarongranick-okta aarongranick-okta commented May 6, 2022

AuthJS has been preserving behavior from idx-js where IDX responses with a non-200 HTTP status are thrown as exceptions

We have added a property to response requestDidSucceed so this information is available without it being thrown.

With this change all IDX responses will be resolved

@aarongranick-okta aarongranick-okta marked this pull request as ready for review May 6, 2022 21:14
@aarongranick-okta aarongranick-okta changed the title Ag okta 481844 idx response breaking change: do not throw IDX responses as errors May 6, 2022
eng-prod-CI-bot-okta pushed a commit that referenced this pull request May 9, 2022
OKTA-481844
<<<Jenkins Check-In of Tested SHA: c2ae026 for eng_productivity_ci_bot_okta@okta.com>>>
Artifact: okta-auth-js
Files changed count: 15
PR Link: #1205
aarongranick-okta added a commit that referenced this pull request Jun 13, 2022
OKTA-481844
<<<Jenkins Check-In of Tested SHA: c2ae026 for eng_productivity_ci_bot_okta@okta.com>>>
Artifact: okta-auth-js
Files changed count: 15
PR Link: #1205
aarongranick-okta added a commit that referenced this pull request Jun 13, 2022
OKTA-481844
<<<Jenkins Check-In of Tested SHA: c2ae026 for eng_productivity_ci_bot_okta@okta.com>>>
Artifact: okta-auth-js
Files changed count: 15
PR Link: #1205
aarongranick-okta added a commit that referenced this pull request Jul 5, 2022
OKTA-481844
<<<Jenkins Check-In of Tested SHA: c2ae026 for eng_productivity_ci_bot_okta@okta.com>>>
Artifact: okta-auth-js
Files changed count: 15
PR Link: #1205
aarongranick-okta added a commit that referenced this pull request Aug 12, 2022
OKTA-481844
<<<Jenkins Check-In of Tested SHA: c2ae026 for eng_productivity_ci_bot_okta@okta.com>>>
Artifact: okta-auth-js
Files changed count: 15
PR Link: #1205
aarongranick-okta added a commit that referenced this pull request Aug 16, 2022
OKTA-481844
<<<Jenkins Check-In of Tested SHA: c2ae026 for eng_productivity_ci_bot_okta@okta.com>>>
Artifact: okta-auth-js
Files changed count: 15
PR Link: #1205
aarongranick-okta added a commit that referenced this pull request Aug 29, 2022
OKTA-481844
<<<Jenkins Check-In of Tested SHA: c2ae026 for eng_productivity_ci_bot_okta@okta.com>>>
Artifact: okta-auth-js
Files changed count: 15
PR Link: #1205
shuowu-okta pushed a commit that referenced this pull request Aug 30, 2022
OKTA-481844
<<<Jenkins Check-In of Tested SHA: c2ae026 for eng_productivity_ci_bot_okta@okta.com>>>
Artifact: okta-auth-js
Files changed count: 15
PR Link: #1205
aarongranick-okta added a commit that referenced this pull request Sep 6, 2022
OKTA-481844
<<<Jenkins Check-In of Tested SHA: c2ae026 for eng_productivity_ci_bot_okta@okta.com>>>
Artifact: okta-auth-js
Files changed count: 15
PR Link: #1205
shuowu-okta pushed a commit that referenced this pull request Sep 16, 2022
OKTA-481844
<<<Jenkins Check-In of Tested SHA: c2ae026 for eng_productivity_ci_bot_okta@okta.com>>>
Artifact: okta-auth-js
Files changed count: 15
PR Link: #1205
aarongranick-okta added a commit that referenced this pull request Sep 21, 2022
OKTA-481844
<<<Jenkins Check-In of Tested SHA: c2ae026 for eng_productivity_ci_bot_okta@okta.com>>>
Artifact: okta-auth-js
Files changed count: 15
PR Link: #1205
eng-prod-CI-bot-2-okta pushed a commit that referenced this pull request Sep 22, 2022
OKTA-481844
<<<Jenkins Check-In of Tested SHA: c2ae026 for eng_productivity_ci_bot_okta@okta.com>>>
Artifact: okta-auth-js
Files changed count: 15
PR Link: #1205
@mdowling17
Copy link

We have added a property to response requestDidSucceed so this information is available without it being thrown.

Except this appears to just be a boolean, we don't have access to the error properties or an HTTP status code.

@jaredperreault-okta
Copy link
Contributor

The error should be in the IDX payload as messages: []. Is there a reason you need the specific http status code?

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.

None yet

4 participants