-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Configurable identity mapper strategies #5060
Conversation
[test] |
userregistry "github.com/openshift/origin/pkg/user/registry/user" | ||
) | ||
|
||
type StrategyClaim struct { |
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.
GoDoc here might be helpful, before reading further I thought this would be stomp strategy.
comments addressed |
The current default (by virtue of being the only option) is I would like to change the default for new configs and existing configs which don't specify a strategy to use
@smarterclayton, this is technically a behavior change, but I haven't encountered anyone using multiple identity providers who wanted the generate behavior... ruling on changing this? |
+1 do it On Tue, Oct 13, 2015 at 2:50 PM, Jordan Liggitt [email protected]
|
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/5826/) |
Tagging with compatibility, deserves a mention in release notes |
@deads2k PTAL |
|
||
// StrategyTypeReplace associates a new identity with a user with the identity's preferred username, | ||
// replacing any existing identities associated with the user | ||
StrategyTypeReplace UserStrategyType = "replace" |
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.
Why would anyone ever choose this? It seems crazy.
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.
removed
comments addressed, still need to split up tests |
comments addressed |
[merge] |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/3635/) (Image: devenv-fedora_2472) |
Evaluated for origin test up to 75710d5 |
@danmcp, in https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/3634/:
|
re[merge] |
Evaluated for origin merge up to 75710d5 |
Merged by openshift-bot
https://trello.com/c/cSa9BKUL/512-3-configurable-identity-user-provisioning-strategies
On login, we currently auto-provision a unique username for new identities. Additional strategies should exist.
This PR adds a
mappingMethod
option to all identity providers:mappingMethod
can be set to the following values:TODO:
Followups:
Fixes #5009