saif-utilities / openapi_parser / security¶
This submodule is responsible for parsing security configurations from OpenAPI specifications and extracting OAuth2 scopes and roles.
Purpose¶
This module processes security definitions and extracts: - OAuth2 scopes from security configurations - Roles from security configurations - Handles both service-level and operation-level security settings
Usage¶
This module is typically used as a submodule within the main openapi_parser module and is not intended for direct consumption.
Providers¶
No providers.
Inputs¶
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| security | A dynamic variable to configure security settings | any |
null |
no |
| tags | A map of tags to assign to the resources | map(string) |
{} |
no |
Outputs¶
| Name | Description |
|---|---|
| roles | Extracted roles from the security configuration |
| scopes | Extracted OAuth2 scopes from the security configuration |