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-933 fetch /saml/check when starting a new session #1582

Merged
merged 1 commit into from
Jan 9, 2025
Merged

Conversation

zburke
Copy link
Member

@zburke zburke commented Jan 7, 2025

This is a follow-up to the botched implementation of STCOR-816 in PR #1432. The description there is "When restoring an existing session..." but in fact the implementation is "When starting a new session or restoring an existing one...". When starting a new session, however, discovery has not happened yet, so there is no information about what interfaces are present, and the conditional would always return false.

The implementation here corrects the conditional:

  1. if we are starting a new session
  2. if we are resuming an existing session and the login-saml interface is present.

Refs STCOR-933

This is a follow-up to the botched implementation of STCOR-816 in
PR #1432. The description there is "When restoring an existing
session..." but in fact the implementation is "When starting a new
session or restoring an existing one...". When starting a new session,
however, discovery has not happened yet, so there is no information
about what interfaces are present, and the conditional would always
return false.

The implementation here corrects the conditional:
1. if we are starting a new session
2. if we are resuming an existing session and the `login-saml` interface
   is present.

Refs STCOR-933
@zburke zburke requested review from ryandberger and aidynoJ January 7, 2025 19:41
@zburke zburke requested a review from a team as a code owner January 7, 2025 19:41
Copy link

github-actions bot commented Jan 7, 2025

Bigtest Unit Test Results

189 tests  ±0   184 ✅ ±0   6s ⏱️ ±0s
  1 suites ±0     5 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 849cf08. ± Comparison against base commit f7d2b36.

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_131_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_131_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_131_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_131_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_131_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 Jan 7, 2025

Jest Unit Test Results

  1 files  ±0   59 suites  ±0   1m 31s ⏱️ ±0s
355 tests ±0  355 ✅ ±0  0 💤 ±0  0 ❌ ±0 
358 runs  ±0  358 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 849cf08. ± Comparison against base commit f7d2b36.

@zburke zburke merged commit 2f75d43 into master Jan 9, 2025
16 checks passed
@zburke zburke deleted the STCOR-933 branch January 9, 2025 21:59
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.

3 participants