Update Identity Server dependencies to 2.3.0 (#2077)
This commit is contained in:
parent
99f352a92f
commit
4046c842af
|
|
@ -5,9 +5,9 @@
|
||||||
<PropertyGroup Label="Package Versions">
|
<PropertyGroup Label="Package Versions">
|
||||||
<AngleSharpPackageVersion>0.9.9</AngleSharpPackageVersion>
|
<AngleSharpPackageVersion>0.9.9</AngleSharpPackageVersion>
|
||||||
<InternalAspNetCoreSdkPackageVersion>2.2.0-preview2-20181004.6</InternalAspNetCoreSdkPackageVersion>
|
<InternalAspNetCoreSdkPackageVersion>2.2.0-preview2-20181004.6</InternalAspNetCoreSdkPackageVersion>
|
||||||
<IdentityServer4PackageVersion>2.3.0-preview1-update2</IdentityServer4PackageVersion>
|
<IdentityServer4AspNetIdentityPackageVersion>2.3.0</IdentityServer4AspNetIdentityPackageVersion>
|
||||||
<IdentityServer4AspNetIdentityPackageVersion>2.3.0-preview1-update2</IdentityServer4AspNetIdentityPackageVersion>
|
<IdentityServer4EntityFrameworkPackageVersion>2.3.0</IdentityServer4EntityFrameworkPackageVersion>
|
||||||
<IdentityServer4EntityFrameworkPackageVersion>2.3.0-preview1-update1</IdentityServer4EntityFrameworkPackageVersion>
|
<IdentityServer4PackageVersion>2.3.0</IdentityServer4PackageVersion>
|
||||||
<MicrosoftAspNetCoreAuthenticationCookiesPackageVersion>2.2.0-preview3-35425</MicrosoftAspNetCoreAuthenticationCookiesPackageVersion>
|
<MicrosoftAspNetCoreAuthenticationCookiesPackageVersion>2.2.0-preview3-35425</MicrosoftAspNetCoreAuthenticationCookiesPackageVersion>
|
||||||
<MicrosoftAspNetCoreAuthenticationFacebookPackageVersion>2.2.0-preview3-35425</MicrosoftAspNetCoreAuthenticationFacebookPackageVersion>
|
<MicrosoftAspNetCoreAuthenticationFacebookPackageVersion>2.2.0-preview3-35425</MicrosoftAspNetCoreAuthenticationFacebookPackageVersion>
|
||||||
<MicrosoftAspNetCoreAuthenticationGooglePackageVersion>2.2.0-preview3-35425</MicrosoftAspNetCoreAuthenticationGooglePackageVersion>
|
<MicrosoftAspNetCoreAuthenticationGooglePackageVersion>2.2.0-preview3-35425</MicrosoftAspNetCoreAuthenticationGooglePackageVersion>
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -16,9 +16,6 @@ namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer
|
||||||
options.Events.RaiseFailureEvents = true;
|
options.Events.RaiseFailureEvents = true;
|
||||||
options.Events.RaiseSuccessEvents = true;
|
options.Events.RaiseSuccessEvents = true;
|
||||||
options.Authentication.CookieAuthenticationScheme = IdentityConstants.ApplicationScheme;
|
options.Authentication.CookieAuthenticationScheme = IdentityConstants.ApplicationScheme;
|
||||||
options.UserInteraction.LoginUrl = "/Identity/Account/Login";
|
|
||||||
options.UserInteraction.LogoutUrl = "/Identity/Account/Logout";
|
|
||||||
options.UserInteraction.ErrorUrl = "/Identity/Error";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -35,10 +35,15 @@ namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the <see cref="PersistedGrant"/>.
|
/// Gets or sets the <see cref="DbSet{PersistedGrant}"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DbSet<PersistedGrant> PersistedGrants { get; set; }
|
public DbSet<PersistedGrant> PersistedGrants { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the <see cref="DbSet{DeviceFlowCodes}"/>.
|
||||||
|
/// </summary>
|
||||||
|
public DbSet<DeviceFlowCodes> DeviceFlowCodes { get; set; }
|
||||||
|
|
||||||
Task<int> IPersistedGrantDbContext.SaveChangesAsync() => base.SaveChangesAsync();
|
Task<int> IPersistedGrantDbContext.SaveChangesAsync() => base.SaveChangesAsync();
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,6 @@ namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer
|
||||||
configure.Configure(options);
|
configure.Configure(options);
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
Assert.Equal("/Identity/Account/Login", options.UserInteraction.LoginUrl);
|
|
||||||
Assert.Equal("/Identity/Account/Logout", options.UserInteraction.LogoutUrl);
|
|
||||||
Assert.Equal("/Identity/Error", options.UserInteraction.ErrorUrl);
|
|
||||||
Assert.Equal(IdentityConstants.ApplicationScheme, options.Authentication.CookieAuthenticationScheme);
|
Assert.Equal(IdentityConstants.ApplicationScheme, options.Authentication.CookieAuthenticationScheme);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue