Ejemplo n.º 1
0
 public virtual Task AuthenticationFailed(AuthenticationFailedContext context) => OnAuthenticationFailed(context);
Ejemplo n.º 2
0
 public virtual Task AuthenticationFailed(AuthenticationFailedContext context) => OnAuthenticationFailed(context);
 /// <summary>
 /// Called by the OIDC middleware when authentication fails.
 /// </summary>
 /// <param name="context">An OIDC-middleware supplied <see cref="Microsoft.AspNet.Authentication.OpenIdConnect.AuthenticationFailedContext"/> containing information about the failed authentication.</param>
 /// <returns>A completed <see cref="System.Threading.Tasks.Task"/></returns>
 public override Task AuthenticationFailed(AuthenticationFailedContext context)
 {
     _logger.AuthenticationFailed(context.Exception);
     return Task.FromResult(0);
 }