Browse Source

identity4 2.0 rtm

pull/374/head
Igor Sychev 7 years ago
committed by Igor Sychev
parent
commit
94c043e69a
7 changed files with 36 additions and 29 deletions
  1. +2
    -2
      src/Services/Identity/Identity.API/Identity.API.csproj
  2. +13
    -8
      src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20170927170433_Config.Designer.cs
  3. +6
    -7
      src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20170927170433_Config.cs
  4. +11
    -6
      src/Services/Identity/Identity.API/Migrations/ConfigurationDb/ConfigurationDbContextModelSnapshot.cs
  5. +2
    -2
      src/Services/Identity/Identity.API/Migrations/PersistedGrantDb/20170927170423_Grants.Designer.cs
  6. +1
    -2
      src/Services/Identity/Identity.API/Migrations/PersistedGrantDb/20170927170423_Grants.cs
  7. +1
    -2
      src/Services/Identity/Identity.API/Startup.cs

+ 2
- 2
src/Services/Identity/Identity.API/Identity.API.csproj View File

@ -20,8 +20,8 @@
<PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.4.1" />
<PackageReference Include="Microsoft.ApplicationInsights.Kubernetes" Version="1.0.0-beta1" />
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />
<PackageReference Include="IdentityServer4.AspNetIdentity" Version="2.0.0-rc1" />
<PackageReference Include="IdentityServer4.EntityFramework" Version="2.0.0-rc1" />
<PackageReference Include="IdentityServer4.AspNetIdentity" Version="2.0.0" />
<PackageReference Include="IdentityServer4.EntityFramework" Version="2.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="1.0.0" />
</ItemGroup>


src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20170912114152_Initial.Designer.cs → src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20170927170433_Config.Designer.cs View File

@ -11,8 +11,8 @@ using System;
namespace Identity.API.Migrations.ConfigurationDb
{
[DbContext(typeof(ConfigurationDbContext))]
[Migration("20170912114152_Initial")]
partial class Initial
[Migration("20170927170433_Config")]
partial class Config
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
@ -171,7 +171,11 @@ namespace Identity.API.Migrations.ConfigurationDb
b.Property<bool>("BackChannelLogoutSessionRequired");
b.Property<string>("BackChannelLogoutUri");
b.Property<string>("BackChannelLogoutUri")
.HasMaxLength(2000);
b.Property<string>("ClientClaimsPrefix")
.HasMaxLength(200);
b.Property<string>("ClientId")
.IsRequired()
@ -194,17 +198,18 @@ namespace Identity.API.Migrations.ConfigurationDb
b.Property<bool>("FrontChannelLogoutSessionRequired");
b.Property<string>("FrontChannelLogoutUri");
b.Property<string>("FrontChannelLogoutUri")
.HasMaxLength(2000);
b.Property<int>("IdentityTokenLifetime");
b.Property<bool>("IncludeJwtId");
b.Property<string>("LogoUri");
b.Property<string>("NormalizedClientId");
b.Property<string>("LogoUri")
.HasMaxLength(2000);
b.Property<bool>("PrefixClientClaims");
b.Property<string>("PairWiseSubjectSalt")
.HasMaxLength(200);
b.Property<string>("ProtocolType")
.IsRequired()

src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20170912114152_Initial.cs → src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20170927170433_Config.cs View File

@ -1,11 +1,10 @@
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using System;
using System.Collections.Generic;
namespace Identity.API.Migrations.ConfigurationDb
{
public partial class Initial : Migration
public partial class Config : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
@ -42,7 +41,8 @@ namespace Identity.API.Migrations.ConfigurationDb
AlwaysSendClientClaims = table.Column<bool>(type: "bit", nullable: false),
AuthorizationCodeLifetime = table.Column<int>(type: "int", nullable: false),
BackChannelLogoutSessionRequired = table.Column<bool>(type: "bit", nullable: false),
BackChannelLogoutUri = table.Column<string>(type: "nvarchar(max)", nullable: true),
BackChannelLogoutUri = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
ClientClaimsPrefix = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
ClientId = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false),
ClientName = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
ClientUri = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
@ -51,12 +51,11 @@ namespace Identity.API.Migrations.ConfigurationDb
EnableLocalLogin = table.Column<bool>(type: "bit", nullable: false),
Enabled = table.Column<bool>(type: "bit", nullable: false),
FrontChannelLogoutSessionRequired = table.Column<bool>(type: "bit", nullable: false),
FrontChannelLogoutUri = table.Column<string>(type: "nvarchar(max)", nullable: true),
FrontChannelLogoutUri = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
IdentityTokenLifetime = table.Column<int>(type: "int", nullable: false),
IncludeJwtId = table.Column<bool>(type: "bit", nullable: false),
LogoUri = table.Column<string>(type: "nvarchar(max)", nullable: true),
NormalizedClientId = table.Column<string>(type: "nvarchar(max)", nullable: true),
PrefixClientClaims = table.Column<bool>(type: "bit", nullable: false),
LogoUri = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
PairWiseSubjectSalt = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
ProtocolType = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false),
RefreshTokenExpiration = table.Column<int>(type: "int", nullable: false),
RefreshTokenUsage = table.Column<int>(type: "int", nullable: false),

+ 11
- 6
src/Services/Identity/Identity.API/Migrations/ConfigurationDb/ConfigurationDbContextModelSnapshot.cs View File

@ -170,7 +170,11 @@ namespace Identity.API.Migrations.ConfigurationDb
b.Property<bool>("BackChannelLogoutSessionRequired");
b.Property<string>("BackChannelLogoutUri");
b.Property<string>("BackChannelLogoutUri")
.HasMaxLength(2000);
b.Property<string>("ClientClaimsPrefix")
.HasMaxLength(200);
b.Property<string>("ClientId")
.IsRequired()
@ -193,17 +197,18 @@ namespace Identity.API.Migrations.ConfigurationDb
b.Property<bool>("FrontChannelLogoutSessionRequired");
b.Property<string>("FrontChannelLogoutUri");
b.Property<string>("FrontChannelLogoutUri")
.HasMaxLength(2000);
b.Property<int>("IdentityTokenLifetime");
b.Property<bool>("IncludeJwtId");
b.Property<string>("LogoUri");
b.Property<string>("NormalizedClientId");
b.Property<string>("LogoUri")
.HasMaxLength(2000);
b.Property<bool>("PrefixClientClaims");
b.Property<string>("PairWiseSubjectSalt")
.HasMaxLength(200);
b.Property<string>("ProtocolType")
.IsRequired()


src/Services/Identity/Identity.API/Migrations/PersistedGrantDb/20170912114120_Initial.Designer.cs → src/Services/Identity/Identity.API/Migrations/PersistedGrantDb/20170927170423_Grants.Designer.cs View File

@ -10,8 +10,8 @@ using System;
namespace Identity.API.Migrations.PersistedGrantDb
{
[DbContext(typeof(PersistedGrantDbContext))]
[Migration("20170912114120_Initial")]
partial class Initial
[Migration("20170927170423_Grants")]
partial class Grants
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{

src/Services/Identity/Identity.API/Migrations/PersistedGrantDb/20170912114120_Initial.cs → src/Services/Identity/Identity.API/Migrations/PersistedGrantDb/20170927170423_Grants.cs View File

@ -1,10 +1,9 @@
using Microsoft.EntityFrameworkCore.Migrations;
using System;
using System.Collections.Generic;
namespace Identity.API.Migrations.PersistedGrantDb
{
public partial class Initial : Migration
public partial class Grants : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{

+ 1
- 2
src/Services/Identity/Identity.API/Startup.cs View File

@ -51,8 +51,7 @@ namespace Microsoft.eShopOnContainers.Services.Identity.API
services.AddIdentity<ApplicationUser, IdentityRole>()
.AddEntityFrameworkStores<ApplicationDbContext>()
.AddDefaultTokenProviders()
.AddIdentityServer();
.AddDefaultTokenProviders();
services.Configure<AppSettings>(Configuration);


Loading…
Cancel
Save