Skip to content

Commit 94c043e

Browse files
Igor SychevSychevIgor
authored andcommitted
identity4 2.0 rtm
1 parent 8d033f0 commit 94c043e

7 files changed

Lines changed: 36 additions & 29 deletions

File tree

src/Services/Identity/Identity.API/Identity.API.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
<PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.4.1" />
2121
<PackageReference Include="Microsoft.ApplicationInsights.Kubernetes" Version="1.0.0-beta1" />
2222
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />
23-
<PackageReference Include="IdentityServer4.AspNetIdentity" Version="2.0.0-rc1" />
24-
<PackageReference Include="IdentityServer4.EntityFramework" Version="2.0.0-rc1" />
23+
<PackageReference Include="IdentityServer4.AspNetIdentity" Version="2.0.0" />
24+
<PackageReference Include="IdentityServer4.EntityFramework" Version="2.0.0" />
2525
<PackageReference Include="Swashbuckle.AspNetCore" Version="1.0.0" />
2626
</ItemGroup>
2727

src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20170912114152_Initial.Designer.cs renamed to src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20170927170433_Config.Designer.cs

Lines changed: 13 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20170912114152_Initial.cs renamed to src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20170927170433_Config.cs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
using Microsoft.EntityFrameworkCore.Metadata;
22
using Microsoft.EntityFrameworkCore.Migrations;
33
using System;
4-
using System.Collections.Generic;
54

65
namespace Identity.API.Migrations.ConfigurationDb
76
{
8-
public partial class Initial : Migration
7+
public partial class Config : Migration
98
{
109
protected override void Up(MigrationBuilder migrationBuilder)
1110
{
@@ -42,7 +41,8 @@ protected override void Up(MigrationBuilder migrationBuilder)
4241
AlwaysSendClientClaims = table.Column<bool>(type: "bit", nullable: false),
4342
AuthorizationCodeLifetime = table.Column<int>(type: "int", nullable: false),
4443
BackChannelLogoutSessionRequired = table.Column<bool>(type: "bit", nullable: false),
45-
BackChannelLogoutUri = table.Column<string>(type: "nvarchar(max)", nullable: true),
44+
BackChannelLogoutUri = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
45+
ClientClaimsPrefix = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
4646
ClientId = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false),
4747
ClientName = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
4848
ClientUri = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
@@ -51,12 +51,11 @@ protected override void Up(MigrationBuilder migrationBuilder)
5151
EnableLocalLogin = table.Column<bool>(type: "bit", nullable: false),
5252
Enabled = table.Column<bool>(type: "bit", nullable: false),
5353
FrontChannelLogoutSessionRequired = table.Column<bool>(type: "bit", nullable: false),
54-
FrontChannelLogoutUri = table.Column<string>(type: "nvarchar(max)", nullable: true),
54+
FrontChannelLogoutUri = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
5555
IdentityTokenLifetime = table.Column<int>(type: "int", nullable: false),
5656
IncludeJwtId = table.Column<bool>(type: "bit", nullable: false),
57-
LogoUri = table.Column<string>(type: "nvarchar(max)", nullable: true),
58-
NormalizedClientId = table.Column<string>(type: "nvarchar(max)", nullable: true),
59-
PrefixClientClaims = table.Column<bool>(type: "bit", nullable: false),
57+
LogoUri = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
58+
PairWiseSubjectSalt = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
6059
ProtocolType = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false),
6160
RefreshTokenExpiration = table.Column<int>(type: "int", nullable: false),
6261
RefreshTokenUsage = table.Column<int>(type: "int", nullable: false),

src/Services/Identity/Identity.API/Migrations/ConfigurationDb/ConfigurationDbContextModelSnapshot.cs

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
170170

171171
b.Property<bool>("BackChannelLogoutSessionRequired");
172172

173-
b.Property<string>("BackChannelLogoutUri");
173+
b.Property<string>("BackChannelLogoutUri")
174+
.HasMaxLength(2000);
175+
176+
b.Property<string>("ClientClaimsPrefix")
177+
.HasMaxLength(200);
174178

175179
b.Property<string>("ClientId")
176180
.IsRequired()
@@ -193,17 +197,18 @@ protected override void BuildModel(ModelBuilder modelBuilder)
193197

194198
b.Property<bool>("FrontChannelLogoutSessionRequired");
195199

196-
b.Property<string>("FrontChannelLogoutUri");
200+
b.Property<string>("FrontChannelLogoutUri")
201+
.HasMaxLength(2000);
197202

198203
b.Property<int>("IdentityTokenLifetime");
199204

200205
b.Property<bool>("IncludeJwtId");
201206

202-
b.Property<string>("LogoUri");
203-
204-
b.Property<string>("NormalizedClientId");
207+
b.Property<string>("LogoUri")
208+
.HasMaxLength(2000);
205209

206-
b.Property<bool>("PrefixClientClaims");
210+
b.Property<string>("PairWiseSubjectSalt")
211+
.HasMaxLength(200);
207212

208213
b.Property<string>("ProtocolType")
209214
.IsRequired()

src/Services/Identity/Identity.API/Migrations/PersistedGrantDb/20170912114120_Initial.Designer.cs renamed to src/Services/Identity/Identity.API/Migrations/PersistedGrantDb/20170927170423_Grants.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Services/Identity/Identity.API/Migrations/PersistedGrantDb/20170912114120_Initial.cs renamed to src/Services/Identity/Identity.API/Migrations/PersistedGrantDb/20170927170423_Grants.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
using Microsoft.EntityFrameworkCore.Migrations;
22
using System;
3-
using System.Collections.Generic;
43

54
namespace Identity.API.Migrations.PersistedGrantDb
65
{
7-
public partial class Initial : Migration
6+
public partial class Grants : Migration
87
{
98
protected override void Up(MigrationBuilder migrationBuilder)
109
{

src/Services/Identity/Identity.API/Startup.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services)
5151

5252
services.AddIdentity<ApplicationUser, IdentityRole>()
5353
.AddEntityFrameworkStores<ApplicationDbContext>()
54-
.AddDefaultTokenProviders()
55-
.AddIdentityServer();
54+
.AddDefaultTokenProviders();
5655

5756
services.Configure<AppSettings>(Configuration);
5857

0 commit comments

Comments
 (0)