Table of Contents

Class ValidateSwaggerRightMiddlewareExtension

Namespace
Arc4u.OAuth2.Middleware
Assembly
Arc4u.OAuth2.AspNetCore.dll
public static class ValidateSwaggerRightMiddlewareExtension
Inheritance
ValidateSwaggerRightMiddlewareExtension
Inherited Members

Methods

AddValidateSwaggerRightFor(IApplicationBuilder, ValidateSwaggerRightMiddlewareOption)

Adds the ValidateSwaggerRightMiddleware to the request pipeline.

public static IApplicationBuilder AddValidateSwaggerRightFor(this IApplicationBuilder app, ValidateSwaggerRightMiddlewareOption option)

Parameters

app IApplicationBuilder

The application builder.

option ValidateSwaggerRightMiddlewareOption

The path to protect and the right to check.

Returns

IApplicationBuilder

The application builder, to chain calls.

Exceptions

ArgumentNullException

An argument is null.