Skip to content

Add profile management to STS, change int to default guid for Identity #161

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

Merged
merged 18 commits into from
Feb 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Migrations are not a part of the repository - they are ignored in `.gitignore`.

- STS:

- `Skoruba.IdentityServer4.STS.Identity` - [Quickstart UI for the IdentityServer4 with Asp.Net Core Identity and EF Core storage](https://github.com/IdentityServer/IdentityServer4.Samples/tree/master/Quickstarts/Combined_AspId_and_EFStorage)
- `Skoruba.IdentityServer4.STS.Identity` - project that contains the instance of IdentityServer4 and combine these samples - [Quickstart UI for the IdentityServer4 with Asp.Net Core Identity and EF Core storage](https://github.com/IdentityServer/IdentityServer4.Samples/tree/master/Quickstarts/Combined_AspId_and_EFStorage) and [damienbod - IdentityServer4 and Identity template](https://github.com/damienbod/IdentityServer4AspNetCoreIdentityTemplate)

- Admin UI:

Expand Down Expand Up @@ -220,12 +220,14 @@ It is possible to define the configuration according the client type - by defaul
- Api Scopes
- Api Scope Claims
- Api Secrets
- Api Properties

**Identity Resources**

- Actions: Add, Update, Remove
- Entities:
- Identity Claims
- Identity Properties

## Asp.Net Core Identity

Expand Down Expand Up @@ -261,15 +263,17 @@ It is possible to define the configuration according the client type - by defaul
- [x] English
- [x] Chinese
- [x] Russian
- [x] Manage profile
- [x] Password reset
- [x] Account linking
- [x] Two-Factor Authentication (2FA)
- [ ] User registration

### 1.1.0:

- [ ] Add audit logs to track changes ([#61](https://github.com/skoruba/IdentityServer4.Admin/issues/61))
- [ ] Create a project template using dotnet CLI - `dotnet new template`
- [ ] Second template: The administration of the IdentityServer4 (without Asp.Net Core Identity) ([#79](https://github.com/skoruba/IdentityServer4.Admin/issues/79))
- [ ] User registration / Password reset
- [ ] Account linking
- [ ] Manage profile

### 2.0.0:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Skoruba.IdentityServer4.Admin.EntityFramework.DbContexts
{
public class AdminDbContext : IdentityDbContext<UserIdentity, UserIdentityRole, int, UserIdentityUserClaim, UserIdentityUserRole, UserIdentityUserLogin, UserIdentityRoleClaim, UserIdentityUserToken>,
public class AdminDbContext : IdentityDbContext<UserIdentity, UserIdentityRole, string, UserIdentityUserClaim, UserIdentityUserRole, UserIdentityUserLogin, UserIdentityRoleClaim, UserIdentityUserToken>,
IAdminConfigurationDbContext, IAdminLogDbContext, IAdminPersistedGrantDbContext, IAdminPersistedGrantIdentityDbContext
{
private readonly ConfigurationStoreOptions _storeOptions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Skoruba.IdentityServer4.Admin.EntityFramework.Identity.Entities.Identity
{
public class UserIdentity : IdentityUser<int>
public class UserIdentity : IdentityUser
{

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Skoruba.IdentityServer4.Admin.EntityFramework.Identity.Entities.Identity
{
public class UserIdentityUserClaim : IdentityUserClaim<int>
public class UserIdentityUserClaim : IdentityUserClaim<string>
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Skoruba.IdentityServer4.Admin.EntityFramework.Identity.Entities.Identity
{
public class UserIdentityRole : IdentityRole<int>
public class UserIdentityRole : IdentityRole
{

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Skoruba.IdentityServer4.Admin.EntityFramework.Identity.Entities.Identity
{
public class UserIdentityRoleClaim : IdentityRoleClaim<int>
public class UserIdentityRoleClaim : IdentityRoleClaim<string>
{

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Skoruba.IdentityServer4.Admin.EntityFramework.Identity.Entities.Identity
{
public class UserIdentityUserLogin : IdentityUserLogin<int>
public class UserIdentityUserLogin : IdentityUserLogin<string>
{

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Skoruba.IdentityServer4.Admin.EntityFramework.Identity.Entities.Identity
{
public class UserIdentityUserRole : IdentityUserRole<int>
public class UserIdentityUserRole : IdentityUserRole<string>
{

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Skoruba.IdentityServer4.Admin.EntityFramework.Identity.Entities.Identity
{
public class UserIdentityUserToken : IdentityUserToken<int>
public class UserIdentityUserToken : IdentityUserToken<string>
{

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ namespace Skoruba.IdentityServer4.Admin.Controllers
[TypeFilter(typeof(ControllerExceptionFilterAttribute))]
public class GrantController : BaseController
{
private readonly IPersistedGrantAspNetIdentityService<AdminDbContext, UserIdentity, UserIdentityRole, int, UserIdentityUserClaim, UserIdentityUserRole, UserIdentityUserLogin, UserIdentityRoleClaim, UserIdentityUserToken> _persistedGrantService;
private readonly IPersistedGrantAspNetIdentityService<AdminDbContext, UserIdentity, UserIdentityRole, string, UserIdentityUserClaim, UserIdentityUserRole, UserIdentityUserLogin, UserIdentityRoleClaim, UserIdentityUserToken> _persistedGrantService;
private readonly IStringLocalizer<GrantController> _localizer;

public GrantController(IPersistedGrantAspNetIdentityService<AdminDbContext, UserIdentity, UserIdentityRole, int, UserIdentityUserClaim, UserIdentityUserRole, UserIdentityUserLogin, UserIdentityRoleClaim, UserIdentityUserToken> persistedGrantService,
public GrantController(IPersistedGrantAspNetIdentityService<AdminDbContext, UserIdentity, UserIdentityRole, string, UserIdentityUserClaim, UserIdentityUserRole, UserIdentityUserLogin, UserIdentityRoleClaim, UserIdentityUserToken> persistedGrantService,
ILogger<ConfigurationController> logger,
IStringLocalizer<GrantController> localizer) : base(logger)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ namespace Skoruba.IdentityServer4.Admin.Controllers
{
[Authorize(Policy = AuthorizationConsts.AdministrationPolicy)]
[TypeFilter(typeof(ControllerExceptionFilterAttribute))]
public class IdentityController : BaseIdentityController<AdminDbContext, UserDto<int>, int, RoleDto<int>, int, int, int, UserIdentity, UserIdentityRole, int, UserIdentityUserClaim, UserIdentityUserRole, UserIdentityUserLogin, UserIdentityRoleClaim, UserIdentityUserToken>
public class IdentityController : BaseIdentityController<AdminDbContext, UserDto<string>, string, RoleDto<string>, string, string, string, UserIdentity, UserIdentityRole, string, UserIdentityUserClaim, UserIdentityUserRole, UserIdentityUserLogin, UserIdentityRoleClaim, UserIdentityUserToken>
{
public IdentityController(IIdentityService<AdminDbContext, UserDto<int>, int, RoleDto<int>, int, int, int, UserIdentity, UserIdentityRole, int, UserIdentityUserClaim, UserIdentityUserRole, UserIdentityUserLogin, UserIdentityRoleClaim, UserIdentityUserToken> identityService, ILogger<ConfigurationController> logger, IStringLocalizer<IdentityController> localizer)
public IdentityController(IIdentityService<AdminDbContext, UserDto<string>, string, RoleDto<string>, string, string, string, UserIdentity, UserIdentityRole, string, UserIdentityUserClaim, UserIdentityUserRole, UserIdentityUserLogin, UserIdentityRoleClaim, UserIdentityUserToken> identityService, ILogger<ConfigurationController> logger, IStringLocalizer<IdentityController> localizer)
: base(identityService, logger, localizer)
{
}
Expand Down
Loading