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

feat(CK Board): Log out of CK Board when user logs out of SCORE #8

Merged
merged 2 commits into from
Feb 28, 2023

Conversation

geoffreykwan
Copy link

@geoffreykwan geoffreykwan commented Dec 19, 2022

Changes

When a user signs out of SCORE, we also sign out of CK Board.

Test

Test with the ck-board branch from this PR

  1. Find your local IP by running this in the Terminal.
ipconfig getifaddr en0
  1. Modify your src/main/resources/application-dockerdev.properties file by adding this new property below. Replace 192.168.86.29 with your local IP.
ck_board_local_backend_url=http://192.168.86.29:8001
  1. Start up SCORE, ck-board frontend, and ck-board backend.

  2. Sign in to SCORE.

  3. Open CK Board in a new tab. You should be automatically logged in.

  4. Sign out of SCORE.

  5. Go to the CK Board tab and refresh it. You should be logged out of CK Board and it should redirect you to the sign in page.

Closes #7

Copy link
Collaborator

@hirokiterashima hirokiterashima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@JoelWiebe JoelWiebe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I was able to successfully log out in both directions (SCORE logs out the CK Board and CK Board logs out SCORE). In both cases it was not immediately apparent that the session had expired for the partner app but after clicking on links or refreshing the page then I was redirected to the login page. Perhaps (in the future) each app can handle the expired/ended session by redirecting the user more immediately to the login page?

Once again, looks great! I think we're good to merge.

@geoffreykwan geoffreykwan removed the request for review from Ammar-T February 28, 2023 19:38
@geoffreykwan geoffreykwan merged commit 42d6aea into develop Feb 28, 2023
@geoffreykwan geoffreykwan deleted the issue-7-sign-out-of-ck-board branch February 28, 2023 19:57
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.

When a user signs out of SCORE, also sign out of CK Board
3 participants