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

STCOR-902 show error message on OIDC fetch failure #1557

Merged
merged 1 commit into from
Nov 5, 2024
Merged

Conversation

zburke
Copy link
Member

@zburke zburke commented Nov 4, 2024

When returning from a SAML/OIDC request, stripes makes an API request to exchange the token for cookies. If that API request fails, show an error and a button prompting the user to try authenticating again.

Previously, instead of showing a button, stripes would automatically redirect to /, which (because there were no cookies) would redirect to the authentication URL, which (because there were still valid authentication cookies) would redirect to stripes, starting an endless circle.

Refs STCOR-902

When returning from a SAML/OIDC request, stripes makes an API request to
exchange the token for cookies. If that API request fails, show an error
and a button prompting the user to try authenticating again.

Previously, instead of showing a button, stripes would automatically
redirect to `/`, which (because there were no cookies) would redirect to
the authentication URL, which (because there _were_ still valid
authentication cookies) would redirect to stripes, starting an endless
circle.

Refs STCOR-902
@zburke zburke requested review from ryandberger and aidynoJ November 4, 2024 22:12
Copy link

github-actions bot commented Nov 4, 2024

Bigtest Unit Test Results

192 tests  ±0   187 ✅ ±0   6s ⏱️ ±0s
  1 suites ±0     5 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 4f248ae. ± Comparison against base commit 031a523.

This pull request removes 5 and adds 3 tests. Note that renamed tests count towards both.
      equal to check email label in english translation
      equal to check email precautions label in english translation
      equal to sent email precautions label in english translation
Chrome_130_0_0_0_(Linux_x86_64).Forgot username/password status test check email status page tests ‑ Forgot username/password status test check email status page tests should have the header with an appropriate text content
Chrome_130_0_0_0_(Linux_x86_64).Forgot username/password status test check email status page tests ‑ Forgot username/password status test check email status page tests should have the paragraph with an appropriate text content
Chrome_130_0_0_0_(Linux_x86_64).Forgot username/password status test check email status page tests ‑ Forgot username/password status test check email status page tests should have the header with an appropriate text content
      equal to check email label in english translation
Chrome_130_0_0_0_(Linux_x86_64).Forgot username/password status test check email status page tests ‑ Forgot username/password status test check email status page tests should have the paragraph with an appropriate text content
      equal to check email precautions label in english translation
Chrome_130_0_0_0_(Linux_x86_64).Forgot username/password status test check email status page tests ‑ Forgot username/password status test check email status page tests should have the paragraph with an appropriate text content
      equal to sent email precautions label in english translation

Copy link

github-actions bot commented Nov 4, 2024

Jest Unit Test Results

  1 files  ±0   55 suites  ±0   1m 33s ⏱️ -1s
340 tests ±0  340 ✅ ±0  0 💤 ±0  0 ❌ ±0 
343 runs  ±0  343 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 4f248ae. ± Comparison against base commit 031a523.

Copy link

sonarqubecloud bot commented Nov 4, 2024

@zburke zburke merged commit 8524811 into master Nov 5, 2024
16 checks passed
@zburke zburke deleted the STCOR-902 branch November 5, 2024 14:45
zburke added a commit that referenced this pull request Dec 2, 2024
When returning from a SAML/OIDC request, stripes makes an API request to
exchange the token for cookies. If that API request fails, show an error
and a button prompting the user to try authenticating again.

Previously, instead of showing a button, stripes would automatically
redirect to `/`, which (because there were no cookies) would redirect to
the authentication URL, which (because there _were_ still valid
authentication cookies) would redirect to stripes, starting an endless
circle.

Refs STCOR-902

(cherry picked from commit 8524811)
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