diff --git a/src/Services/Identity/Identity.API/Identity.API.csproj b/src/Services/Identity/Identity.API/Identity.API.csproj
index 84b1c280c..69760871e 100644
--- a/src/Services/Identity/Identity.API/Identity.API.csproj
+++ b/src/Services/Identity/Identity.API/Identity.API.csproj
@@ -20,8 +20,8 @@
-
-
+
+
diff --git a/src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20170912114152_Initial.Designer.cs b/src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20170927170433_Config.Designer.cs
similarity index 97%
rename from src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20170912114152_Initial.Designer.cs
rename to src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20170927170433_Config.Designer.cs
index a718c0943..327d2fee0 100644
--- a/src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20170912114152_Initial.Designer.cs
+++ b/src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20170927170433_Config.Designer.cs
@@ -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("BackChannelLogoutSessionRequired");
- b.Property("BackChannelLogoutUri");
+ b.Property("BackChannelLogoutUri")
+ .HasMaxLength(2000);
+
+ b.Property("ClientClaimsPrefix")
+ .HasMaxLength(200);
b.Property("ClientId")
.IsRequired()
@@ -194,17 +198,18 @@ namespace Identity.API.Migrations.ConfigurationDb
b.Property("FrontChannelLogoutSessionRequired");
- b.Property("FrontChannelLogoutUri");
+ b.Property("FrontChannelLogoutUri")
+ .HasMaxLength(2000);
b.Property("IdentityTokenLifetime");
b.Property("IncludeJwtId");
- b.Property("LogoUri");
-
- b.Property("NormalizedClientId");
+ b.Property("LogoUri")
+ .HasMaxLength(2000);
- b.Property("PrefixClientClaims");
+ b.Property("PairWiseSubjectSalt")
+ .HasMaxLength(200);
b.Property("ProtocolType")
.IsRequired()
diff --git a/src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20170912114152_Initial.cs b/src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20170927170433_Config.cs
similarity index 98%
rename from src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20170912114152_Initial.cs
rename to src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20170927170433_Config.cs
index 257a6adde..754c75486 100644
--- a/src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20170912114152_Initial.cs
+++ b/src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20170927170433_Config.cs
@@ -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(type: "bit", nullable: false),
AuthorizationCodeLifetime = table.Column(type: "int", nullable: false),
BackChannelLogoutSessionRequired = table.Column(type: "bit", nullable: false),
- BackChannelLogoutUri = table.Column(type: "nvarchar(max)", nullable: true),
+ BackChannelLogoutUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
+ ClientClaimsPrefix = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true),
ClientId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false),
ClientName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true),
ClientUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
@@ -51,12 +51,11 @@ namespace Identity.API.Migrations.ConfigurationDb
EnableLocalLogin = table.Column(type: "bit", nullable: false),
Enabled = table.Column(type: "bit", nullable: false),
FrontChannelLogoutSessionRequired = table.Column(type: "bit", nullable: false),
- FrontChannelLogoutUri = table.Column(type: "nvarchar(max)", nullable: true),
+ FrontChannelLogoutUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
IdentityTokenLifetime = table.Column(type: "int", nullable: false),
IncludeJwtId = table.Column(type: "bit", nullable: false),
- LogoUri = table.Column(type: "nvarchar(max)", nullable: true),
- NormalizedClientId = table.Column(type: "nvarchar(max)", nullable: true),
- PrefixClientClaims = table.Column(type: "bit", nullable: false),
+ LogoUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
+ PairWiseSubjectSalt = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true),
ProtocolType = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false),
RefreshTokenExpiration = table.Column(type: "int", nullable: false),
RefreshTokenUsage = table.Column(type: "int", nullable: false),
diff --git a/src/Services/Identity/Identity.API/Migrations/ConfigurationDb/ConfigurationDbContextModelSnapshot.cs b/src/Services/Identity/Identity.API/Migrations/ConfigurationDb/ConfigurationDbContextModelSnapshot.cs
index 560c5ea89..88d9baba3 100644
--- a/src/Services/Identity/Identity.API/Migrations/ConfigurationDb/ConfigurationDbContextModelSnapshot.cs
+++ b/src/Services/Identity/Identity.API/Migrations/ConfigurationDb/ConfigurationDbContextModelSnapshot.cs
@@ -170,7 +170,11 @@ namespace Identity.API.Migrations.ConfigurationDb
b.Property("BackChannelLogoutSessionRequired");
- b.Property("BackChannelLogoutUri");
+ b.Property("BackChannelLogoutUri")
+ .HasMaxLength(2000);
+
+ b.Property("ClientClaimsPrefix")
+ .HasMaxLength(200);
b.Property("ClientId")
.IsRequired()
@@ -193,17 +197,18 @@ namespace Identity.API.Migrations.ConfigurationDb
b.Property("FrontChannelLogoutSessionRequired");
- b.Property("FrontChannelLogoutUri");
+ b.Property("FrontChannelLogoutUri")
+ .HasMaxLength(2000);
b.Property("IdentityTokenLifetime");
b.Property("IncludeJwtId");
- b.Property("LogoUri");
-
- b.Property("NormalizedClientId");
+ b.Property("LogoUri")
+ .HasMaxLength(2000);
- b.Property("PrefixClientClaims");
+ b.Property("PairWiseSubjectSalt")
+ .HasMaxLength(200);
b.Property("ProtocolType")
.IsRequired()
diff --git a/src/Services/Identity/Identity.API/Migrations/PersistedGrantDb/20170912114120_Initial.Designer.cs b/src/Services/Identity/Identity.API/Migrations/PersistedGrantDb/20170927170423_Grants.Designer.cs
similarity index 96%
rename from src/Services/Identity/Identity.API/Migrations/PersistedGrantDb/20170912114120_Initial.Designer.cs
rename to src/Services/Identity/Identity.API/Migrations/PersistedGrantDb/20170927170423_Grants.Designer.cs
index 72f0df362..aaf24d10c 100644
--- a/src/Services/Identity/Identity.API/Migrations/PersistedGrantDb/20170912114120_Initial.Designer.cs
+++ b/src/Services/Identity/Identity.API/Migrations/PersistedGrantDb/20170927170423_Grants.Designer.cs
@@ -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)
{
diff --git a/src/Services/Identity/Identity.API/Migrations/PersistedGrantDb/20170912114120_Initial.cs b/src/Services/Identity/Identity.API/Migrations/PersistedGrantDb/20170927170423_Grants.cs
similarity index 95%
rename from src/Services/Identity/Identity.API/Migrations/PersistedGrantDb/20170912114120_Initial.cs
rename to src/Services/Identity/Identity.API/Migrations/PersistedGrantDb/20170927170423_Grants.cs
index 44bd9fed1..4017f8bf0 100644
--- a/src/Services/Identity/Identity.API/Migrations/PersistedGrantDb/20170912114120_Initial.cs
+++ b/src/Services/Identity/Identity.API/Migrations/PersistedGrantDb/20170927170423_Grants.cs
@@ -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)
{
diff --git a/src/Services/Identity/Identity.API/Startup.cs b/src/Services/Identity/Identity.API/Startup.cs
index da93e1a51..8447d3213 100644
--- a/src/Services/Identity/Identity.API/Startup.cs
+++ b/src/Services/Identity/Identity.API/Startup.cs
@@ -51,8 +51,7 @@ namespace Microsoft.eShopOnContainers.Services.Identity.API
services.AddIdentity()
.AddEntityFrameworkStores()
- .AddDefaultTokenProviders()
- .AddIdentityServer();
+ .AddDefaultTokenProviders();
services.Configure(Configuration);