Created
October 8, 2024 01:19
-
-
Save jimbrig/cc8641b70eec86c67582e5bf4f9ae951 to your computer and use it in GitHub Desktop.
OpenAPI Security Scheme Examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
components: | |
securitySchemes: | |
# apiKey ------------ | |
auth1: | |
description: Recommended authenticator | |
type: apiKey | |
in: query | |
name: key | |
auth2: | |
type: apiKey | |
in: header | |
name: X-API-Key | |
auth3: | |
type: apiKey | |
in: cookie | |
name: key | |
# http ------------ | |
auth4: | |
type: http | |
scheme: basic | |
auth5: | |
type: http | |
scheme: bearer | |
bearerFormat: JWT | |
auth6: | |
type: http | |
scheme: digest # not supported by Speakeasy | |
# mutualTLS ------------ | |
auth7: | |
type: mutualTLS # not supported by Speakeasy | |
# openIdConnect ------------ | |
auth8: | |
type: openIdConnect | |
openIdConnectUrl: https://example.com/openidconfig.json | |
# oauth2 ------------ | |
auth9: | |
type: oauth2 | |
flows: | |
authorizationCode: | |
scopes: | |
read: Grants read access | |
write: Grants write access | |
authorizationUrl: https://test.com/oauth/authorize | |
tokenUrl: https://test.com/oauth/token | |
refreshUrl: https://test.com/oauth/refresh | |
clientCredentials: | |
scopes: | |
read: Grants read access | |
write: Grants write access | |
tokenUrl: https://test.com/oauth/token | |
refreshUrl: https://test.com/oauth/refresh | |
implicit: | |
scopes: | |
read: Grants read access | |
write: Grants write access | |
authorizationUrl: https://test.com/oauth/authorize | |
refreshUrl: https://test.com/oauth/refresh | |
password: | |
scopes: | |
read: Grants read access | |
write: Grants write access | |
tokenUrl: https://test.com/oauth/token | |
refreshUrl: https://test.com/oauth/refresh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment