Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit ef9ff35

Browse files
committed
Remove unneeded AuthenticateContext
1 parent f9e19ed commit ef9ff35

File tree

3 files changed

+2
-25
lines changed

3 files changed

+2
-25
lines changed

src/Microsoft.AspNetCore.Authentication.Abstractions/AuthenticateContext.cs

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/Microsoft.AspNetCore.Authentication.Abstractions/IAuthenticationHandler.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ public interface IAuthenticationHandler
2222
/// <summary>
2323
/// Authentication behavior.
2424
/// </summary>
25-
/// <param name="context">The <see cref="AuthenticateContext"/> context.</param>
2625
/// <returns>The <see cref="AuthenticateResult"/> result.</returns>
27-
Task<AuthenticateResult> AuthenticateAsync(AuthenticateContext context);
26+
Task<AuthenticateResult> AuthenticateAsync();
2827

2928
/// <summary>
3029
/// Challenge behavior.

src/Microsoft.AspNetCore.Authentication.Core/AuthenticationService.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ public virtual async Task<AuthenticateResult> AuthenticateAsync(HttpContext cont
6565
throw new InvalidOperationException($"No authentication handler is configured to authenticate for the scheme: {scheme}");
6666
}
6767

68-
var authContext = new AuthenticateContext(context, scheme);
69-
var result = await handler.AuthenticateAsync(authContext);
68+
var result = await handler.AuthenticateAsync();
7069
if (result.Succeeded)
7170
{
7271
var transformed = await Transform.TransformAsync(result.Principal);

0 commit comments

Comments
 (0)