Speakeasy Logo
Skip to Content

Simple security schemes

Basic HTTP authentication

Basic HTTP authentication is supported in all languages.

Define type: http and scheme: basic to generate authentication that prompts users for a username and password when instantiating the SDK. The SDK will encode the username and password into a Base64 string and pass it in the Authorization header.

API key authentication

API key authentication is supported in all languages.

Define type: apiKey and in: [header,query] to generate authentication that prompts users for a key when instantiating the SDK. The SDK passes the key in a header or query parameter, depending on the in property, and uses the name field as the header or key name.

Bearer token authentication

Bearer token authentication is supported in all languages.

Define type: http and scheme: bearer to generate authentication that prompts users for a token when instantiating the SDK. The SDK will pass the token in the Authorization header using the Bearer scheme, appending the Bearer prefix to the token if not already present.

Last updated on