Class ProtectedResourceEndpointConventionBuilderExtensions
- Namespace
- Keycloak.AuthServices.Authorization
- Assembly
- Keycloak.AuthServices.Authorization.dll
Authorization extension methods for IEndpointConventionBuilder.
public static class ProtectedResourceEndpointConventionBuilderExtensions
- Inheritance
-
ProtectedResourceEndpointConventionBuilderExtensions
- Inherited Members
Methods
IgnoreProtectedResource<TBuilder>(TBuilder, string)
Adds IgnoreProtectedResourceAttribute to the endpoint(s).
public static TBuilder IgnoreProtectedResource<TBuilder>(this TBuilder builder, string resource) where TBuilder : IEndpointConventionBuilder
Parameters
builder
TBuilderThe endpoint convention builder.
resource
string
Returns
- TBuilder
The original convention builder parameter.
Type Parameters
TBuilder
IgnoreProtectedResources<TBuilder>(TBuilder)
Adds IgnoreProtectedResourceAttribute to the endpoint(s).
public static TBuilder IgnoreProtectedResources<TBuilder>(this TBuilder builder) where TBuilder : IEndpointConventionBuilder
Parameters
builder
TBuilderThe endpoint convention builder.
Returns
- TBuilder
The original convention builder parameter.
Type Parameters
TBuilder
RequireProtectedResource<TBuilder>(TBuilder, string)
Adds ProtectedResourceAttribute to the endpoint(s).
public static TBuilder RequireProtectedResource<TBuilder>(this TBuilder builder, string resource) where TBuilder : IEndpointConventionBuilder
Parameters
builder
TBuilderThe endpoint convention builder.
resource
string
Returns
- TBuilder
The original convention builder parameter.
Type Parameters
TBuilder
RequireProtectedResource<TBuilder>(TBuilder, string, string)
Adds ProtectedResourceAttribute to the endpoint(s).
public static TBuilder RequireProtectedResource<TBuilder>(this TBuilder builder, string resource, string scope) where TBuilder : IEndpointConventionBuilder
Parameters
Returns
- TBuilder
The original convention builder parameter.
Type Parameters
TBuilder
RequireProtectedResource<TBuilder>(TBuilder, string, string[])
Adds ProtectedResourceAttribute to the endpoint(s).
public static TBuilder RequireProtectedResource<TBuilder>(this TBuilder builder, string resource, string[] scopes) where TBuilder : IEndpointConventionBuilder
Parameters
Returns
- TBuilder
The original convention builder parameter.
Type Parameters
TBuilder