# 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.

<!-- BEGIN_TF_DOCS -->
## Providers

No providers.

## Inputs

| Name | Description | Type | Default | Required |
| ---- | ----------- | ---- | ------- | :------: |
| <a name="input_security"></a> [security](#input\_security) | A dynamic variable to configure security settings | `any` | `null` | no |
| <a name="input_tags"></a> [tags](#input\_tags) | A map of tags to assign to the resources | `map(string)` | `{}` | no |

## Outputs

| Name | Description |
| ---- | ----------- |
| <a name="output_roles"></a> [roles](#output\_roles) | Extracted roles from the security configuration |
| <a name="output_scopes"></a> [scopes](#output\_scopes) | Extracted OAuth2 scopes from the security configuration |

## Resources
    
<!-- END_TF_DOCS -->

---

[View source on GitHub](https://github.com/saif-corp/forge/blob/main/src/terraform/saif-utilities/modules/openapi_parser/security/README.md)
