-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
API ignores basic auth (for creating API key) #25503
Labels
Comments
This is not documented, but is possible via the CLI:
Thanks to @delvh for letting me know in the discord chat! |
By the way, docs PR are always welcome, if you want to improve the documentation. |
LOL - I just submitted a PR, this second! #25504 |
techknowlogick
pushed a commit
that referenced
this issue
Jun 26, 2023
Related to #25503 --------- Co-authored-by: delvh <dev.lh@web.de>
techknowlogick
pushed a commit
to techknowlogick/gitea
that referenced
this issue
Jun 26, 2023
Related to go-gitea#25503 --------- Co-authored-by: delvh <dev.lh@web.de>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
I am using ansible to provision a gitea server and configure it. I created an admin account using the CLI.
There are some things that can only be done with the API, but to use it one needs an API key. And I can't do that manually - I want to automate that.
So using basic auth, I tried:
Error:
So I tried in the swagger interface. In the auth popup I entered username/password for the basic auth option, then I tried the endpoint. Result:
I double checked my syntax with the docs here, and it seems correct. And my username/password is correct as I use it in the gitea frontend.
Gitea Version
1.20.0-rc2
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
linux
How are you running Gitea?
docker rootful
Database
SQLite
The text was updated successfully, but these errors were encountered: