IdentityUI: Switch some cookie options to Configure (#9529)

This commit is contained in:
Hao Kung 2019-04-26 14:30:22 -07:00 committed by GitHub
parent 28d44af91a
commit d4965b0f56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -17,7 +17,7 @@ namespace Microsoft.AspNetCore.Identity.UI
internal class IdentityDefaultUIConfigureOptions<TUser> :
IPostConfigureOptions<RazorPagesOptions>,
IPostConfigureOptions<StaticFileOptions>,
IPostConfigureOptions<CookieAuthenticationOptions> where TUser : class
IConfigureNamedOptions<CookieAuthenticationOptions> where TUser : class
{
private const string IdentityUIDefaultAreaName = "Identity";
@ -72,7 +72,9 @@ namespace Microsoft.AspNetCore.Identity.UI
options.FileProvider = new CompositeFileProvider(options.FileProvider, filesProvider);
}
public void PostConfigure(string name, CookieAuthenticationOptions options)
public void Configure(CookieAuthenticationOptions options) { }
public void Configure(string name, CookieAuthenticationOptions options)
{
name = name ?? throw new ArgumentNullException(nameof(name));
options = options ?? throw new ArgumentNullException(nameof(options));