/// <summary> /// Extension method for Forbid using the <see cref="AuthenticationOptions.DefaultForbidScheme"/> scheme.. /// </summary> /// <param name="context">The <see cref="ProtoContext"/> context.</param> /// <returns>The task.</returns> public static Task ForbidAsync(this ProtoContext context) => context.ForbidAsync(scheme: null, properties: null);
/// <summary> /// Extension method for Forbid. /// </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 ForbidAsync(this ProtoContext context, AuthenticationProperties properties) => context.ForbidAsync(scheme: null, properties: properties);
/// <summary> /// Extension method for Forbid. /// </summary> /// <param name="context">The <see cref="ProtoContext"/> context.</param> /// <param name="scheme">The name of the authentication scheme.</param> /// <returns>The task.</returns> public static Task ForbidAsync(this ProtoContext context, string scheme) => context.ForbidAsync(scheme, properties: null);