-
Notifications
You must be signed in to change notification settings - Fork 211
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
#VP-2081 add member id to identity result #416
#VP-2081 add member id to identity result #416
Conversation
|
||
namespace VirtoCommerce.Storefront.Model.Security | ||
{ | ||
public class MemberIdIdentityResult : IdentityResult |
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.
I suggest defining a new type of UserActionIdentityResult
instead of deriving from IdentityResult
that will contain all properties from IdentityResult
to preserving backward compatibility plus in addition with the new User
property.
@@ -181,9 +191,9 @@ public async Task<ActionResult<IdentityResult>> RegisterUser([FromBody] Organiza | |||
[HttpPost("invitation")] | |||
[ValidateAntiForgeryToken] | |||
[ProducesResponseType(401)] | |||
public async Task<ActionResult<IdentityResult>> CreateUserInvitation([FromBody] UsersInvitation invitation) | |||
public async Task<ActionResult<UserActionIdentityResult>> CreateUserInvitation([FromBody] UsersInvitation invitation) |
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.
@@ -77,10 +77,10 @@ public async Task<ActionResult<User>> GetUserById(string userId) | |||
[HttpDelete("{userId}")] | |||
[Authorize(SecurityConstants.Permissions.CanDeleteUsers)] | |||
[ValidateAntiForgeryToken] | |||
public async Task<ActionResult<IdentityResult>> DeleteUser([FromRoute] string userId) | |||
public async Task<ActionResult<UserActionIdentityResult>> DeleteUser([FromRoute] string userId) | |||
{ | |||
//TODO: Authorization check |
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.
@@ -311,10 +321,10 @@ public async Task<ActionResult<UserSearchResult>> SearchOrganizationUsersAsync([ | |||
[HttpPost("{userId}/lock")] | |||
[Authorize(SecurityConstants.Permissions.CanEditUsers)] | |||
[ValidateAntiForgeryToken] | |||
public async Task<ActionResult<IdentityResult>> LockUser([FromRoute]string userId) | |||
public async Task<ActionResult<UserActionIdentityResult>> LockUser([FromRoute]string userId) | |||
{ | |||
//TODO: Add authorization checks |
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.
@@ -334,10 +344,10 @@ public async Task<ActionResult<IdentityResult>> LockUser([FromRoute]string userI | |||
[HttpPost("{userId}/unlock")] | |||
[Authorize(SecurityConstants.Permissions.CanEditUsers)] | |||
[ValidateAntiForgeryToken] | |||
public async Task<ActionResult<IdentityResult>> UnlockUser([FromRoute] string userId) | |||
public async Task<ActionResult<UserActionIdentityResult>> UnlockUser([FromRoute] string userId) | |||
{ | |||
//TODO: Add authorization checks |
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.
When this pull request is going to be released? |
9d9b070
to
89914be
Compare
SonarQube analysis reported 8 issues Watch the comments in this conversation to review them. 4 extra issuesNote: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:
|
No description provided.