-
Notifications
You must be signed in to change notification settings - Fork 334
Add multi-ingress domains to SCIM IdPs #4778
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
Open
supersven
wants to merge
24
commits into
develop
Choose a base branch
from
sventennie/scim-idp-with-domain
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
c682b91
Add domain field to IDP config
supersven 1bcbf9a
Add simple integration test (create idp)
supersven 5581d66
Improve test (get & update)
supersven 03655c0
Only write the domain field for multi-ingress domains
supersven d2013f0
Ensure only one Idp can be created for multi-ingress
supersven e8c4384
Add domain column to idp table in cassandra-schema.sql
supersven b996b58
Rename test
supersven 0d08b8c
Ensure that the existing non-multi-ingress behaviour hasn't changed
supersven b932503
Fix typo
supersven d93cccb
Improve test
supersven 80a8adf
Reduce duplication by extracting a helper function
supersven b4f7260
Add comment
supersven bab413c
Add test for unconfigured domains
supersven adb44e0
Delete debug print
supersven 30c3d4b
Cleanup tests
supersven be7bd3b
Add changelog
supersven 35b7e35
Add docs
supersven e42648f
Reformat
supersven 215f1a9
Unify bindings of same values
supersven 8c64d98
make cassandra-schema
supersven 3afa5bc
Delete obsolete TODO
supersven 9fb0a05
Remove bogus name in pattern matches
supersven c2457d1
Improve one ingress per domain test
supersven 79ef8f4
Fix warning: Local binding shadowing import
supersven 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
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,9 @@ | ||
When a SAML IdP is created on a multi-ingress domain (implying that | ||
multi-ingress domains are configured in Spar) the domain is added as `domain` | ||
field to that IdP's `extraInfo` (`WireIdP` type in Haskell.) To avoid confusion | ||
in later lookups, at most one IdP can be configured per multi-ingress domain. | ||
If multi-ingress is not configured or it's not configured for the specific | ||
domain, no `domain` field gets added to the IdP. This guards against creating | ||
multiple IdPs and then assigning them to multi-ingress domains. Thus, users who | ||
don't use multi-ingress don't observe any change. This feature only opens the | ||
door to later provide an IdP for a multi-ingress domain. |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you mean "guards against a team having no multi-ingress, but several idps that are only distinguished by domain (because domain is part of the database key)?
we do allow several idps per team, though, right? except there is some complication with scim and saml, and associating the two for one ipd, not sure what the current implementation status there is.
not sure this makes sense, but i'll leave it as a note to self so i can clarify later.