-
Notifications
You must be signed in to change notification settings - Fork 332
Introduce team-based SP entityIDs to allow IdPs with fixed entityID to serve more than one team. #1755
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
Merged
Merged
Introduce team-based SP entityIDs to allow IdPs with fixed entityID to serve more than one team. #1755
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
1c2d9e5
Allow two teams with same IdP (entityID).
fisx 2a3d79b
RESET_PLS
fisx 3b229e9
Revert "RESET_PLS"
fisx 05e269d
Tests.
fisx fc588eb
...
fisx 182af83
...
fisx 47c377e
...
fisx d2c0467
...
fisx d09283e
...
fisx e4c9097
RESET_PLS
fisx da36da6
Revert "RESET_PLS"
fisx c9d3a71
...
fisx 31ff727
...
fisx 57d06ae
Fix typo.
fisx f944be2
...
fisx 188626b
RESET_PLS
fisx 83acf32
Revert "RESET_PLS"
fisx edfb77d
Try out skipAPIVersions.
fisx a8675c9
Update stack.yaml.
fisx 3eca40e
Fix stale comment.
fisx 1124443
better test.
fisx 24c783f
fix authnreq issuer computation.
fisx 23e5e9c
fix authnreq issuer computation *test*.
fisx cf36000
Test multi-team idp issuer (failing).
fisx fe57c6c
Fix: it's ok to have two teams with the same IdP issuer/entityID...
fisx f0111fc
The fix is becoming more invovled...
fisx 42865d3
...
fisx 689caa2
...
fisx 67cc420
...
fisx c230589
More debug logging.
fisx 0c0e292
Fix: pass teamid from path to all the functions in finalize-login.
fisx eb1fdf6
Fix: delete now hits issuer_idp_v2.
fisx 7203c7f
Fix tests: replacing idps.
fisx efafe7a
Fix: post several idps with same entityID.
fisx 97cf8c7
Fix test case.
fisx a3ed0fb
Another fix.
fisx ad211e8
Tweak race condition mitigation in test case.
fisx 333ff54
Tweak.
fisx 1d15c4e
Update services/spar/test-integration/Test/Spar/APISpec.hs
fisx 3950ce6
Update services/spar/test-integration/Test/Spar/APISpec.hs
fisx 178528f
...
fisx 5ede16f
...
fisx 83f3bc5
add a changelog entry.
julialongtin a7bab5d
cassandra-schema docs
jschaul 91de317
Nit-pick.
fisx 6f91c57
Reduce code duplication.
fisx 8cfa08b
Fix: test against sso-url from config.
fisx 234f95a
ormolu
fisx b9498f4
...
fisx 8cad1b2
...
fisx 79488d5
More explicit error case handling.
fisx 379c56c
...
fisx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| Support using a single IDP with a single EntityID (aka issuer ID) to set up two teams. | ||
| Sets up a migration, and makes teamID + EntityID unique, rather than relying on EntityID to be unique. | ||
| Required to support multiple teams in environments where the IDP software cannot present anything but one EntityID (E.G.: DualShield). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| -- This file is part of the Wire Server implementation. | ||
| -- | ||
| -- Copyright (C) 2020 Wire Swiss GmbH <opensource@wire.com> | ||
| -- | ||
| -- This program is free software: you can redistribute it and/or modify it under | ||
| -- the terms of the GNU Affero General Public License as published by the Free | ||
| -- Software Foundation, either version 3 of the License, or (at your option) any | ||
| -- later version. | ||
| -- | ||
| -- This program is distributed in the hope that it will be useful, but WITHOUT | ||
| -- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
| -- FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more | ||
| -- details. | ||
| -- | ||
| -- You should have received a copy of the GNU Affero General Public License along | ||
| -- with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
|
||
| module V15 | ||
| ( migration, | ||
| ) | ||
| where | ||
|
|
||
| import Cassandra.Schema | ||
| import Imports | ||
| import Text.RawString.QQ | ||
|
|
||
| migration :: Migration | ||
| migration = Migration 15 "Optionally index IdP by teamid (in addition to entityID); add idp api version." $ do | ||
| void $ | ||
| schema' | ||
| [r| | ||
| CREATE TABLE if not exists issuer_idp_v2 | ||
| ( issuer text | ||
| , team uuid | ||
| , idp uuid | ||
| , PRIMARY KEY (issuer, team) | ||
| ) with compaction = {'class': 'LeveledCompactionStrategy'}; | ||
| |] | ||
| void $ | ||
| schema' | ||
| [r| | ||
| ALTER TABLE idp ADD api_version int; | ||
| |] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.