This repository has been archived by the owner on Jul 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: Update authorization token header in SQUAD docs
Change the authorization token from "Auth-Token:" to "Authorization: token" in SQUAD's documentation, to align with Django Rest Framework's Authorization token format. While both formats are currently supported by SQUAD, Django only treats requests with the "Authorization: token" as authenticated, and will treat requests made with "Auth-Token" as unauthenticated requests. This can sometimes lead to incorrect behavior when using "Auth-Token". For this reason documentation should be updated to change "Authorization: token" to the preferred header for authentication. Signed-off-by: Katie Worton <[email protected]>
- Loading branch information
1 parent
7b0faca
commit 11ab164
Showing
5 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,7 +67,7 @@ api for submitting a new test job:: | |
|
||
wget https://validation.linaro.org/static/docs/v2/examples/test-jobs/qemu-pipeline-first-job.yaml | ||
curl localhost:8000/api/submitjob/<group-slug>/<project-slug>/<build-version>/<env> \ | ||
--header "Auth-Token: $SQUAD_TOKEN" \ | ||
--header "Authorization: token $SQUAD_TOKEN" \ | ||
--form "backend=<backend-name>" \ | ||
--form "[email protected]" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters