-
Notifications
You must be signed in to change notification settings - Fork 28
Ssouser group enhancement #99
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
Ssouser group enhancement #99
Conversation
sync with master repo
Implementation for Group And User Management
|
@ajefts please take a look at this when you have time. Thanks! |
|
I'll deploy it to dev and take a look. fyi @mtwomey |
|
@huangqun Creating groups looks ok. However, editing a users SSO properties isn't quite right yet...
Please let me know if that makes sense. Thanks, |
|
@ajefts my comments below:
|
|
I'll get 2 & 3 updated. But if you can double check #1 and let me know if that's an issue it would be helpful. |
|
@ajefts also do we already have api to pull the list of providers from database? Admin app is frontend only and can't do that. |
|
@ajefts if there's no such api yet, where should we add it? Perhaps the identity service since we already have the sso user api there? |
|
@huangqun I don't believe we have that endpoint, but identity would be the right place to add it. Thanks. |
|
@ajefts check this new PR that should address the changes requested above: However it seems that the v3/users api doesn't return all the profiles of that user but only the 1st one, and therefore after changing the sso provider, we can't see the updated provider (since api seems to create a new profile for each new sso provider) since only the 1st profile in the list is returned by the api. Not sure if that's something that needs to be fixed in the api and then in the admin-app (to show the list of profiles). |
|
@ajefts any things we need to do about the api issue I mentioned above? |
|
I'm not sure I fully understand. Is it creating new user records when you update the original user? |
|
@ajefts please check this: https://github.com/appirio-tech/tc1-api-core/blob/6a163effcbf50d989424f1450b60364f24391faf/tech.core/tech.core.service.identity/src/main/java/com/appirio/tech/core/service/identity/resource/UserResource.java#L176-L181 Whenever you set a new sso provider to an existing user, it will create a new SSO user (profile). However the |
|
for https://github.com/appirio-tech/tc1-api-core/blob/6a163effcbf50d989424f1450b60364f24391faf/tech.core/tech.core.service.identity/src/main/java/com/appirio/tech/core/service/identity/resource/UserResource.java#L176-L181, logically it looks like it's not adding a new record IF one already exists. Is that not true in reality. We only want 1 sso_user_login record per user |
|
Not really, in fact it creates a new record if the <userId, providerId> doesn't exist yet. I guess we need to fix this in the API first. |
|
@ajefts - It should support multiple SSO identities per tc uid + provider-id. I think it can't handle multiple accounts within the same provider. |
|
@ykohata so the logic we have here right now is actually correct? Each tc uid + provider-id pair will uniquely correspond to at most one SSO identity right? |
1 similar comment
|
@ykohata so the logic we have here right now is actually correct? Each tc uid + provider-id pair will uniquely correspond to at most one SSO identity right? |
|
@huangqun In that case then, do we need to be looking up the user sso info for the specific provider when making updates? |
|
@ajefts I think perhaps we need a new endpoint to get the list of sso identities for a user id, which can be used in the admin app when editing the sso users. The UI might need some tweaks as well since right now our UI doesn't support displaying multiple providers. For example:
|
|
@huangqun yes, I agree with your thinking. We should provide support to create/edit multiple sso identities per user account. I think we should allow the admin user to explicitly "Add New Provider" and select an existing provider to edit. I think we should update the modal for managing the SSO info to add these features. |
|
@ajefts ok, that makes sense, I'll get the API updated and then start the update on the admin-app. |




@ajefts Changes for #87 and #88