feat(Login): When SCORE SSO is enabled, show SCORE login in a popup w… #566
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
When SCORE SSO is enabled and the user is not logged in and visits a CK Board url, a window will pop up with the SCORE login page. After the user logs in, the popup window will close and the original window will be redirected to the url the user originally attempted to visit.
Note: This popup gets blocked by the browser popup blocker and the user needs to tell the browser to show the popup. I think if we have the user click a button to open the popup, it won't get blocked. See details here
https://javascript.info/popup-windows
Test
Test the SCORE login popup
Project URL
http://localhost:4201/project/12345678-abcd-1234-abcd-123456789012
Board URL
http://localhost:4201/project/12345678-abcd-1234-abcd-123456789012/board/abcdefgh-1234-abcd-1234-abcdefghijkl
Closes #565