Class ControllerConfiguration
- Namespace
- OpenSettings.Configurations
- Assembly
- OpenSettings.dll
Configuration options for the settings controller, including route, authorization and Api visibility.
public class ControllerConfiguration
- Inheritance
-
ControllerConfiguration
- Inherited Members
Constructors
ControllerConfiguration()
Initializes a new instance of the ControllerConfiguration class.
public ControllerConfiguration()
Properties
AllowFromExploring
Specifies whether the open settings controller's endpoints should be exposed in Api documentation (e.g., for Swagger or other Api explorers).
The default value is 'false
'.
public bool AllowFromExploring { get; set; }
Property Value
Authorize
Indicates whether the controller requires authentication for access.
When set to true, authentication is enforced.
When set to false, the controller is accessible without authentication unless the service type is Consumer, in which case the provider's authorization settings take precedence, and authentication may still be required.
The default value is 'false
'.
public bool Authorize { get; set; }
Property Value
OAuth2
Gets or sets OAuth2 configuration for the open settings controller, allowing for more detailed configuration of authentication and authorization using OAuth2.
public OAuth2Configuration OAuth2 { get; set; }
Property Value
Route
Gets or sets the base route for the service controller's endpoints.
Default is "api/settings
". Trailing and leading slashes are trimmed if present.
public string Route { get; set; }