Authentication
Infinity data source supports the following authentication methods:
- No authentication
- Basic authentication
- Bearer token authentication
- API key authentication
- Digest authentication
- OAuth passthrough
- OAuth 2.0 client credentials
- OAuth 2.0 JWT authentication
- Azure authentication
- Azure blob storage key
- AWS authentication
No authentication
If your APIs don’t require any authentication, select the No Authentication method.
Basic
Basic authentication sends a username and password with your request.
In the request headers, the Authorization
header uses the Basic <BASE64_ENCODED_USERNAME_AND_PASSWORD>
format.
Bearer token
Bearer token enable requests to authenticate using an access key, such as a JSON Web Token (JWT) or personal access token.
In the request headers, the Authorization
header uses the Bearer <API_KEY>
format.
Tip
If you need a custom prefix instead of
Bearer
prefix, use API key authentication instead with the key ofAuthorization
.
API key
With API key authentication, you can send a key-value pair to the API via request headers or query parameters. API key authentication requires following parameters:
Tip
It’s easy to confuse API key authentication with Bearer token authentication. Ensure sure you are using the correct authentication mechanism.
Digest
Digest authentication enable requests to authenticate using RFC7616 HTTP Digest Access Authentication protocol.
OAuth passthrough
If your Grafana user is already authenticated via OAuth, this authentication method forwards the OAuth tokens to the API.
OAuth 2.0 client credentials
OAuth 2.0 client credentials require the following parameters:
OAuth 2.0 JWT
OAuth 2.0 JWT require the following parameters
Azure
If you want to authenticate your API endpoints via Microsoft Azure authentication, refer to Azure authentication.
Azure Blob Storage key
To retrieve content from azure blob storage, you need to provide the following information:
- Azure storage account name.
- Azure storage account key (either primary key or secondary key).
AWS
If you want to authenticate your API endpoints via Amazon AWS authentication, refer to AWS authentication.