ASPSecurityKitRegistry

Namespace: ASPSecurityKit.ServiceStack
Assembly: ASPSecurityKit.ServiceStack.dll

Summary

Encapsulates logic to register dependencies.

Methods

Register(containerBuilder,authRequestDefinitionRegistrar,authRequestDefinitionType)

Summary

Registers the dependencies including authRequestDefinitions. To learn more about auth definitions (including the discovery and registration process), visit https://ASPSecurityKit.net/docs/how-to-perform-activity-based-data-aware-authorization/#auth-definition

Parameters
Name Type Description
containerBuilder ASPSecurityKit.IContainerBuilder The DI builder object.
authRequestDefinitionRegistrar ASPSecurityKit.ServiceStack.IAuthorizeRequestDefinitionRegistrar Optional. The object that registers and resolves authRequestDefinition. If not specified, the default is an instance of AuthorizeRequestDefinitionRegistrar.
authRequestDefinitionType System.Type Optional. Type of an authRequestDefinition implementation (that implements IAuthorizeRequestDefinitionsContainer) to indicate assembly containing the authRequestDefinitions.
Exceptions
Type Description
System.ArgumentNullException When containerBuilder is null.

RegisterASKComponents(containerBuilder,authRequestDefinitionRegistrar)

Summary

Registers ask components.

Parameters
Name Type Description
containerBuilder ASPSecurityKit.IContainerBuilder The container builder.
authRequestDefinitionRegistrar ASPSecurityKit.ServiceStack.IAuthorizeRequestDefinitionRegistrar The authRequestDefinitionRegistrar.
Exceptions
Type Description
System.ArgumentNullException When containerBuilder or authRequestDefinitionRegistrar is null.

RegisterAuthDefinitions(containerBuilder,authRequestDefinitionRegistrar,authRequestDefinitionAssembly)

Summary

Locates and registers the authRequestDefinitions from the specified assembly. To learn more, visit https://ASPSecurityKit.net/docs/how-to-perform-activity-based-data-aware-authorization/#auth-definition

Parameters
Name Type Description
containerBuilder ASPSecurityKit.IContainerBuilder The container builder.
authRequestDefinitionRegistrar ASPSecurityKit.ServiceStack.IAuthorizeRequestDefinitionRegistrar The authRequestDefinitionRegistrar.
authRequestDefinitionAssembly System.Reflection.Assembly The assembly containing authRequestDefinition types.
Exceptions
Type Description
System.ArgumentNullException When containerBuilder, authRequestDefinitionRegistrar or authRequestDefinitionAssembly is null.

GetAuthRequestDefinitionTypes(authRequestDefinitionTypeAssembly)

Summary

Gets the authRequestDefinition types from the specified assembly.

Returns

The authRequestDefinition types from the specified assembly.

Parameters
Name Type Description
authRequestDefinitionTypeAssembly System.Reflection.Assembly The assembly containing authRequestDefinition types.
Exceptions
Type Description
System.ArgumentNullException When authRequestDefinitionAssembly is null.

RegisterStaticDefinitions(authRequestDefinitionRegistrar,authRequestDefinitionType)

Summary

Registers the static definitions.

Parameters
Name Type Description
authRequestDefinitionRegistrar ASPSecurityKit.ServiceStack.IAuthorizeRequestDefinitionRegistrar The authRequestDefinitionRegistrar.
authRequestDefinitionType System.Type The authRequestDefinitionType.
Exceptions
Type Description
System.ArgumentNullException When authRequestDefinitionRegistrar or authRequestDefinitionType is null.

RegisterIsAuthorizeDefinitions(authRequestDefinitionRegistrar,authRequestDefinitionType)

Summary

Registers the IsAuthorized definitions.

Parameters
Name Type Description
authRequestDefinitionRegistrar ASPSecurityKit.ServiceStack.IAuthorizeRequestDefinitionRegistrar The authRequestDefinitionRegistrar.
authRequestDefinitionType System.Type The authRequestDefinitionType.
Exceptions
Type Description
System.ArgumentNullException When authRequestDefinitionRegistrar or authRequestDefinitionType is null.