-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added AccountService and removed EF dependency in OpentIddict-UI Iden…
…tity Api project
- Loading branch information
1 parent
ecd1b8c
commit 0297762
Showing
20 changed files
with
317 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/identity/OpenIddict.UI.Identity.Core/DTOs/ChangePasswordParam.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace tomware.OpenIddict.UI.Identity.Core | ||
{ | ||
public class ChangePasswordParam | ||
{ | ||
public string CurrentPassword { get; set; } | ||
public string NewPassword { get; set; } | ||
public string UserName { get; set; } | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/identity/OpenIddict.UI.Identity.Core/DTOs/RegisterUserParam.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace tomware.OpenIddict.UI.Identity.Core | ||
{ | ||
public class RegisterUserParam | ||
{ | ||
public string UserName { get; set; } | ||
public string Email { get; set; } | ||
public string Password { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace tomware.OpenIddict.UI.Identity.Core | ||
{ | ||
public class ClaimInfo | ||
{ | ||
public string Type { get; set; } | ||
public string Value { get; set; } | ||
} | ||
|
||
public class UserInfo | ||
{ | ||
public string Id { get; set; } | ||
|
||
public string UserName { get; set; } | ||
|
||
public string Email { get; set; } | ||
|
||
public bool LockoutEnabled { get; set; } | ||
|
||
public bool IsLockedOut { get; set; } | ||
|
||
public List<ClaimInfo> Claims { get; set; } = new List<ClaimInfo>(); | ||
|
||
public List<string> Roles { get; set; } = new List<string>(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
namespace tomware.OpenIddict.UI.Identity.Core | ||
{ | ||
public class UserParam : UserInfo { } | ||
} |
19 changes: 17 additions & 2 deletions
19
src/identity/OpenIddict.UI.Identity.Core/DependencyInjection.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.