Exemplo n.º 1
0
 /// <summary>
 /// Extension method for authenticate using the <see cref="AuthenticationOptions.DefaultChallengeScheme"/> scheme.
 /// </summary>
 /// <param name="context">The <see cref="ProtoContext"/> context.</param>
 /// <param name="properties">The <see cref="AuthenticationProperties"/> properties.</param>
 /// <returns>The task.</returns>
 public static Task ChallengeAsync(this ProtoContext context, AuthenticationProperties properties) =>
 context.ChallengeAsync(scheme: null, properties: properties);
Exemplo n.º 2
0
 /// <summary>
 /// Extension method for authenticate using the <see cref="AuthenticationOptions.DefaultChallengeScheme"/> scheme.
 /// </summary>
 /// <param name="context">The <see cref="ProtoContext"/> context.</param>
 /// <returns>The task.</returns>
 public static Task ChallengeAsync(this ProtoContext context) =>
 context.ChallengeAsync(scheme: null, properties: null);