Slide 16
Slide 16 text
16
@leastprivilege / @brocklallen
Interacting with the authentication system
public interface IAuthenticationService
{
// authenticate the specified scheme.
Task AuthenticateAsync(HttpContext context, string scheme);
// session management
Task SignInAsync(HttpContext context, string scheme, ClaimsPrincipal principal,
AuthenticationProperties properties);
Task SignOutAsync(HttpContext context, string scheme, AuthenticationProperties properties);
// signal that authentication is required
Task ChallengeAsync(HttpContext context, string scheme, AuthenticationProperties properties);
// signal that access is denied
Task ForbidAsync(HttpContext context, string scheme, AuthenticationProperties properties);
}