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