-
Notifications
You must be signed in to change notification settings - Fork 158
Tenant #1274
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
Tenant #1274
Conversation
08172c6 to
2c20d36
Compare
| logger.Error().Str("backend", "cs3").Err(err).Str("nameOrId", nameOrId).Msg("error sending get user by claim id grpc request: transport error") | ||
| return nil, errorcode.New(errorcode.ServiceNotAvailable, err.Error()) | ||
| case res.GetStatus().GetCode() == cs3rpc.Code_CODE_OK: | ||
| return CreateUserModelFromCS3(res.GetUser()), nil | ||
| case res.GetStatus().GetCode() == cs3rpc.Code_CODE_NOT_FOUND: | ||
| // If the user was not found by username, try to get it by user ID | ||
| default: | ||
| logger.Debug().Str("backend", "cs3").Err(err).Str("nameOrId", nameOrId).Msg("error sending get user by claim id grpc request") | ||
| return nil, errorcode.New(errorcode.GeneralException, res.GetStatus().GetMessage()) | ||
|
|
||
| } |
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.
What if the search returns more than one user? names may not be unique
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.
refers to L58
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.
@butonic suggested to use upn to be safe
We have added support for tenantIds for users. Adapted the CreateShare Endpoints to respect theseif used.
refs #877