Merge pull request #5790 from influxdata/jstirnaman/issue5781

Include the word `Bearer` or `Token`, a space, and your **token** value (all case-sensitive). Fix broken TOC links
pull/5809/head
Jason Stirnaman 2025-01-27 15:25:24 -06:00 committed by GitHub
commit 5e9560d81a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 14 additions and 4 deletions

View File

@ -141,6 +141,7 @@ The `/api/v2/write` endpoint maps the supplied version 1.x database and retentio
to access the platform and all its capabilities.
InfluxDB v1.x uses a username and password combination when accessing the HTTP APIs.
Use the Token schema to provide your InfluxDB 1.x username and password separated by a colon (`:`).
The `Token` scheme is the word `Token`, a space, and your credentials (all case-sensitive).
For example: `Authorization: Token username:password`.
{{< code-tabs-wrapper >}}

View File

@ -36,6 +36,7 @@ Token authentication requires the following credential:
- **token**: InfluxDB [API token](/influxdb/v2/admin/tokens/)
Use the `Authorization` header with the `Token` scheme to provide your token to InfluxDB.
The `Token` scheme is the word `Token`, a space, and your token (all case-sensitive).
#### Syntax

View File

@ -68,7 +68,7 @@ With the InfluxDB v1 API, you can use database tokens in InfluxDB 1.x username a
schemes, in the InfluxDB v2 `Authorization: Token` scheme, or in the OAuth `Authorization: Bearer` scheme.
- [Authenticate with a username and password scheme](#authenticate-with-a-username-and-password-scheme)
- [Authenticate with a token scheme](#authenticate-with-a-token)
- [Authenticate with a token scheme](#authenticate-with-a-token-scheme)
### Authenticate with a username and password scheme
@ -158,6 +158,8 @@ The `Token` scheme is used in the InfluxDB 2.x API.
`Bearer` is defined by the [OAuth 2.0 Framework](https://www.rfc-editor.org/rfc/rfc6750#page-14).
Support for one or the other may vary across InfluxDB API clients.
Include the word `Bearer` or `Token`, a space, and your **token** value (all case-sensitive).
#### Syntax
```http

View File

@ -54,7 +54,7 @@ With the InfluxDB v1 API, you can use API tokens in InfluxDB 1.x username and pa
schemes or in the InfluxDB v2 `Authorization: Token` scheme.
- [Authenticate with a username and password scheme](#authenticate-with-a-username-and-password-scheme)
- [Authenticate with a token scheme](#authenticate-with-a-token)
- [Authenticate with a token scheme](#authenticate-with-a-token-scheme)
### Authenticate with a username and password scheme
@ -151,6 +151,8 @@ Replace the following:
Use the `Authorization: Token` scheme to pass a [token](/influxdb3/cloud-serverless/admin/tokens/) for authenticating
v1 API `/write` and `/query` requests.
Include the word `Token`, a space, and your **token** value (all case-sensitive).
#### Syntax
```http

View File

@ -450,7 +450,9 @@ Include the following with your request:
With the {{% product-name %}}
[v1 API `/write` endpoint](/influxdb3/clustered/api/#operation/PostLegacyWrite),
`Authorization: Bearer` and `Authorization: Token` are equivalent and you can
use either scheme to pass a database token in your request. For more information
use either scheme to pass a database token in your request.
Include the word `Bearer` or `Token`, a space, and your **token** value (all case-sensitive).
For more information
about HTTP API token schemes, see how to
[authenticate API requests](/influxdb3/clustered/guides/api-compatibility/v1/).
{{% /note %}}

View File

@ -67,7 +67,7 @@ With the InfluxDB v1 API, you can use database tokens in InfluxDB 1.x username a
schemes, in the InfluxDB v2 `Authorization: Token` scheme, or in the OAuth `Authorization: Bearer` scheme.
- [Authenticate with a username and password scheme](#authenticate-with-a-username-and-password-scheme)
- [Authenticate with a token scheme](#authenticate-with-a-token)
- [Authenticate with a token scheme](#authenticate-with-a-token-scheme)
### Authenticate with a username and password scheme
@ -155,6 +155,8 @@ The `Token` scheme is used in the InfluxDB 2.x API.
`Bearer` is defined by the [OAuth 2.0 Framework](https://www.rfc-editor.org/rfc/rfc6750#page-14).
Support for one or the other may vary across InfluxDB API clients.
Include the word `Bearer` or `Token`, a space, and your **token** value (all case-sensitive).
#### Syntax
```http