A headless UI for the OpenIddict-Core stack.
Fixes an issue when updating confidential applications:
ClientSecret
-property is required for confidential applicationIdentityUser<TKey>
An example project using INT as the primary key is included in the samples/ServerWithCustomKey project.
...
.AddUIIdentityStore<ApplicationUser, int>(options =>
{
...
})
// Register the APIs for the EF based UI Store based on ASP.NET Identity.
.AddUIIdentityApis<ApplicationUser, int>();
...
...
.AddUIIdentityStore<ApplicationUser>(options =>
{
...
})
...
Split OpenIddict and ASP.NET Identity logic:
Allows to register Permissions with the familiar IOptions pattern.
...
.AddUIApis<ApplicationUser>(options =>
{
// Tell the system about the allowed Permissions it is built/configured for.
options.Permissions = new List<string>
{
Permissions.Endpoints.Authorization,
Permissions.Endpoints.Logout,
Permissions.Endpoints.Token,
Permissions.GrantTypes.AuthorizationCode,
Permissions.GrantTypes.Password,
Permissions.GrantTypes.RefreshToken,
Permissions.ResponseTypes.Code,
Permissions.Scopes.Email,
Permissions.Scopes.Profile,
Permissions.Scopes.Roles,
Permissions.Prefixes.Scope + "demo_api"
}
});