UseIdentity => UseAuthentication
This commit is contained in:
parent
4aafafe6f9
commit
c142085695
|
|
@ -1,7 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using IdentitySample.Models;
|
||||
using IdentitySample.Services;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
||||
|
|
@ -9,11 +7,6 @@ using Microsoft.EntityFrameworkCore;
|
|||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using IdentitySample.Models;
|
||||
using IdentitySample.Services;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.DataProtection;
|
||||
using System.IO;
|
||||
|
||||
namespace IdentitySample
|
||||
{
|
||||
|
|
@ -68,7 +61,7 @@ namespace IdentitySample
|
|||
|
||||
app.UseStaticFiles();
|
||||
|
||||
// To configure external authentication please see http://go.microsoft.com/fwlink/?LinkID=532715
|
||||
app.UseAuthentication();
|
||||
|
||||
app.UseMvc(routes =>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,7 +15,8 @@ namespace Microsoft.AspNetCore.Builder
|
|||
/// </summary>
|
||||
/// <param name="app">The <see cref="IApplicationBuilder"/> instance this method extends.</param>
|
||||
/// <returns>The <see cref="IApplicationBuilder"/> instance this method extends.</returns>
|
||||
[Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", error: true)]
|
||||
public static IApplicationBuilder UseIdentity(this IApplicationBuilder app) => app;
|
||||
[Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470")]
|
||||
public static IApplicationBuilder UseIdentity(this IApplicationBuilder app)
|
||||
=> app.UseAuthentication();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue