Skip to content

Commit

Permalink
Merge pull request #1 from alexs0ff/1-add-identity-server
Browse files Browse the repository at this point in the history
added identity server
  • Loading branch information
alexs0ff authored Jul 25, 2019
2 parents 852a488 + b9e6bf0 commit 51b62e4
Show file tree
Hide file tree
Showing 12 changed files with 951 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/Data/ApplicationDbContext.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using IdentityServer4.EntityFramework.Options;
using IdentityServer4WebApp.Models;
using Microsoft.AspNetCore.ApiAuthorization.IdentityServer;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Options;

namespace IdentityServer4WebApp.Data
{
public class ApplicationDbContext : ApiAuthorizationDbContext<ApplicationUser>
{
public ApplicationDbContext(
DbContextOptions options,
IOptions<OperationalStoreOptions> operationalStoreOptions) : base(options, operationalStoreOptions)
{

}
}
}
13 changes: 13 additions & 0 deletions src/IdentityServer4WebApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@


<ItemGroup>
<Folder Include="Data\" />
<Folder Include="Models\" />
</ItemGroup>


<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.ApiAuthorization.IdentityServer" Version="3.0.0-preview7.19365.7" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="3.0.0-preview7.19365.7" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="3.0.0-preview7.19362.6" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.0.0-preview7.19362.6">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

</Project>
293 changes: 293 additions & 0 deletions src/Migrations/20190725115646_Init.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 51b62e4

Please sign in to comment.