fix: Authorization, not Authentication, header (#3342)

(closes https://github.com/influxdata/DAR/issues/241)
pull/3348/head
Jason Stirnaman 2021-11-03 16:53:56 -05:00 committed by GitHub
parent 2bddffb52b
commit 754d1a1bef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 8 deletions

4
.prettierrc.yaml Normal file
View File

@ -0,0 +1,4 @@
trailingComma: "es5"
tabWidth: 2
semi: true
singleQuote: true

View File

@ -5949,7 +5949,7 @@ components:
within the organization.
Include your API token in an `Authentication: Token YOUR_API_TOKEN` HTTP
Include your API token in an `Authorization: Token YOUR_API_TOKEN` HTTP
header with each request.
@ -5957,7 +5957,7 @@ components:
`curl https://us-east-1-1.aws.cloud2.influxdata.com/
--header "Authentication: Token YOUR_API_TOKEN"`
--header "Authorization: Token YOUR_API_TOKEN"`
For more information and examples, see the following:
- [Use tokens in API requests](https://docs.influxdata.com/influxdb/cloud/api-guide/api_intro/#authentication).

View File

@ -7,12 +7,12 @@ TokenAuthentication:
InfluxDB API tokens ensure secure interaction between users and data. A token belongs to an organization and identifies InfluxDB permissions within the organization.
Include your API token in an `Authentication: Token YOUR_API_TOKEN` HTTP header with each request.
Include your API token in an `Authorization: Token YOUR_API_TOKEN` HTTP header with each request.
### Example
`curl https://us-east-1-1.aws.cloud2.influxdata.com/
--header "Authentication: Token YOUR_API_TOKEN"`
--header "Authorization: Token YOUR_API_TOKEN"`
For more information and examples, see the following:
- [Use tokens in API requests](https://docs.influxdata.com/influxdb/cloud/api-guide/api_intro/#authentication).

View File

@ -7,12 +7,12 @@ TokenAuthentication:
InfluxDB API tokens ensure secure interaction between users and data. A token belongs to an organization and identifies InfluxDB permissions within the organization.
Include your API token in an `Authentication: Token YOUR_API_TOKEN` HTTP header with each request.
Include your API token in an `Authorization: Token YOUR_API_TOKEN` HTTP header with each request.
### Example
`curl http://localhost:8086/ping
--header "Authentication: Token YOUR_API_TOKEN"`
--header "Authorization: Token YOUR_API_TOKEN"`
For more information and examples, see the following:
- [Use tokens in API requests](https://docs.influxdata.com/influxdb/v2.0/api-guide/api_intro/#authentication).

View File

@ -13516,14 +13516,14 @@ components:
within the organization.
Include your API token in an `Authentication: Token YOUR_API_TOKEN` HTTP
Include your API token in an `Authorization: Token YOUR_API_TOKEN` HTTP
header with each request.
### Example
`curl http://localhost:8086/ping
--header "Authentication: Token YOUR_API_TOKEN"`
--header "Authorization: Token YOUR_API_TOKEN"`
For more information and examples, see the following:
- [Use tokens in API requests](https://docs.influxdata.com/influxdb/v2.0/api-guide/api_intro/#authentication).