Resolve users according to userstore preference order if configured. #771
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.
Proposed changes in this pull request
Changes proposed in this PR contains resolving users according to the user store preference order if configured. Note that, if the userstore domain is appended to the login identifier of the user, user store preference will not be taken into consideration.
Support Flows
When multi attribute is enabled, you can configure a particular SP to be authenticated only by one userstore. This is called userstore binding. No other SPs can be authenticated with the users in this userstore. Other SPs can be authenticated with the rest of the userstores as usual.
Note:
When should this PR be merged
After the wso2/carbon-kernel#3682 got merged and released.
Peer verification steps:
Pre-requisits
http://wso2.org/claims/username,http://wso2.org/claims/mobile,http://wso2.org/claims/emailaddress
.0711234567
.test
in all 3 userstores.Test Cases:
My Account
using the PRIMARY user store user0711234567
.My Account
using the SECONDARY user store user0711234567
.Console
using the PRIMARY user store admin's credentials.Console
using the SECONDARY user store admin's credentials.Console
using the PRIMARY user store usertest
.test
user available in both PRIMARY and TERTIARY userstores.Try the same test flows without the user preference order.
[1] https://medium.com/@nilasini/user-store-preference-order-per-service-provider-available-from-5-9-0-onwards-bcd7648a485c
[2] https://github.com/mpmadhavig/user-store-order-callback-handler
Resolves wso2/product-is#12503