MvcCoreMvcCoreBuilderExtensions.AddAuthorization Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddAuthorization(IMvcCoreBuilder) |
Configures authentication and authorization services for |
AddAuthorization(IMvcCoreBuilder, Action<AuthorizationOptions>) |
Configures authentication and authorization services for |
AddAuthorization(IMvcCoreBuilder)
Configures authentication and authorization services for builder
.
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddAuthorization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder);
static member AddAuthorization : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddAuthorization (builder As IMvcCoreBuilder) As IMvcCoreBuilder
Parameters
- builder
- IMvcCoreBuilder
The IMvcCoreBuilder.
Returns
The IMvcCoreBuilder.
Applies to
AddAuthorization(IMvcCoreBuilder, Action<AuthorizationOptions>)
Configures authentication and authorization services for builder
.
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddAuthorization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.AspNetCore.Authorization.AuthorizationOptions> setupAction);
static member AddAuthorization : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Action<Microsoft.AspNetCore.Authorization.AuthorizationOptions> -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddAuthorization (builder As IMvcCoreBuilder, setupAction As Action(Of AuthorizationOptions)) As IMvcCoreBuilder
Parameters
- builder
- IMvcCoreBuilder
The IMvcCoreBuilder.
- setupAction
- Action<AuthorizationOptions>
An Action to configure the AuthorizationOptions.
Returns
The IMvcCoreBuilder.