Browse Source
Update FakeAuthenticationMiddleware.cs
pull/3918/head
maliming
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
4 deletions
-
framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/Authorization/FakeAuthenticationMiddleware.cs
|
|
|
@ -4,19 +4,16 @@ using System.Security.Claims; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Microsoft.AspNetCore.Http; |
|
|
|
using Volo.Abp.DependencyInjection; |
|
|
|
using Volo.Abp.Security.Claims; |
|
|
|
|
|
|
|
namespace Volo.Abp.AspNetCore.Mvc.Authorization |
|
|
|
{ |
|
|
|
public class FakeAuthenticationMiddleware : IMiddleware, ITransientDependency |
|
|
|
{ |
|
|
|
private readonly FakeUserClaims _fakeUserClaims; |
|
|
|
private readonly ICurrentPrincipalAccessor _currentPrincipalAccessor; |
|
|
|
|
|
|
|
public FakeAuthenticationMiddleware(FakeUserClaims fakeUserClaims, ICurrentPrincipalAccessor currentPrincipalAccessor) |
|
|
|
public FakeAuthenticationMiddleware(FakeUserClaims fakeUserClaims) |
|
|
|
{ |
|
|
|
_fakeUserClaims = fakeUserClaims; |
|
|
|
_currentPrincipalAccessor = currentPrincipalAccessor; |
|
|
|
} |
|
|
|
|
|
|
|
public async Task InvokeAsync(HttpContext context, RequestDelegate next) |
|
|
|
|