-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
API Authorization: header not working #4243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Closing for now because I'm probably an idiot -- the |
Okay, for anyone landing here from google -- the way to get the Authorization: token 65eaa9c8ef52460d22a93307fe0aee76289dc675 In a curl -X POST "http://localhost:4000/api/v1/repos/test1/test1/issues" -H "accept: application/json" -H "Authorization: token 65eaa9c8ef52460d22a93307fe0aee76289dc675" -H "Content-Type: application/json" -d "{ \"body\": \"testing\", \"title\": \"test 20\"}" -i The code that parses this is at Line 47 in 6efdcae
Some related points:
|
* Build on work by @tungsheng * Address issues raised in go-gitea#4037, go-gitea#3673, and go-gitea#4243 * Close go-gitea#4247 Signed-off-by: Steve Traugott <[email protected]>
* add api user guides in doc * update user-guides api page * fix typo: user guides -> user guide * move api-usage page under advanced category * flesh out API usage docs * Build on work by @tungsheng * Address issues raised in #4037, #3673, and #4243 * Close #4247 Signed-off-by: Steve Traugott <[email protected]>
The
Authorization:
header doesn't seem to be working as of 2e05ffd. I haven't yet figured out what's causing this behavior, or if it's something I'm doing wrong. Seeing some possible similarities with some of the symptoms of #3842, particularly the 401 response described there when usingAuthorization:
.How to duplicate:
401 Unauthorized
error.curl
command given by the swagger web UI. It also fails. Adding a-i
flag to curl shows that it is returning a401 Unauthorized
:Authorize
button again, log out of AuthorizationHeaderToken, and instead paste your token in theToken
value field.The text was updated successfully, but these errors were encountered: