We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
from flask_openapi3 import Info from flask_openapi3 import OpenAPI info = Info(title='book API', version='1.0.0') # Basic Authentication Sample basic = { "type": "http", "scheme": "basic" } # JWT Bearer Sample jwt = { "type": "http", "scheme": "bearer", "bearerFormat": "JWT" } # API Key Sample api_key = { "type": "apiKey", "name": "api_key", "in": "header" } # Implicit OAuth2 Sample oauth2 = { "type": "oauth2", "flows": { "implicit": { "authorizationUrl": "https://example.com/api/oauth/dialog", "scopes": { "write:pets": "modify pets in your account", "read:pets": "read your pets" } } } } security_schemes = {"jwt": jwt, "api_key": api_key, "oauth2": oauth2, "basic": basic} app = OpenAPI(__name__, info=info, security_schemes=security_schemes)
see Security Scheme Object Example
DeprecationWarning: HTTPBearer, OAuth2, OAuthFlows, OAuthFlowImplicit, APIKey, HTTPBase will be deprecated in v3.x
The text was updated successfully, but these errors were encountered:
[#72] security_schemes(SecurityScheme) supports a json format
19d2ab0
No branches or pull requests
see Security Scheme Object Example
DeprecationWarning:
HTTPBearer, OAuth2, OAuthFlows, OAuthFlowImplicit, APIKey, HTTPBase will be deprecated in v3.x
The text was updated successfully, but these errors were encountered: