Security and Authentication
Authentication Overview
Speakeasy-created SDKs have authentication automatically configured based on the securitySchemes
defined in the OpenAPI specification.
APIs authenticated with simple schemes such as Basic HTTP Auth, API keys and Bearer tokens work out of the box. For APIs using short-lived tokens (OAuth), additional configuration is required to simplify setup.
Authentication Mechanism | Language Support |
---|---|
HTTP Basic Authentication | ✅ Docs |
API Key [header, query] | ✅ Docs |
Bearer Token Authentication | ✅ Docs |
OAuth | ✅ All GA and some Beta Languages |
mTLS | ✅ using hooks |
Custom Security Schemes | ✅ using Speakeasy custom security schemes extension |