| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
| hide |
|
|---|
Openapi-core provides easy access to security data for authentication and authorization processes.
Supported security schemes:
Here's an example with BasicAuth and ApiKeyAuth security schemes:
security:
- BasicAuth: []
- ApiKeyAuth: []
components:
securitySchemes:
BasicAuth:
type: http
scheme: basic
ApiKeyAuth:
type: apiKey
in: header
name: X-API-KeySecurity scheme data is accessible from the security attribute of the RequestUnmarshalResult object.
# Get basic auth decoded credentials
result.security['BasicAuth']
# Get API key
result.security['ApiKeyAuth']| Back | FazBrowse Home | New Git URL |