-
Please check server url property in
Administration / System Settingsto make sure it is set tohttps://onedev.tld -
Yes, it is set exactly as you suggested.
-
The bearer token authentication has a bug that it requires a user name. Use the form
Authorization: Bearer <login name>:TOKENinstead. Also the url to pull/push container image should be of the formonedev.tld/<project path>/<repository>. Here<repository>is name of the repository under the project (OneDev will create it if not exist) -
The bearer token authentication has a bug that it requires a user name
This turns out not a bug. User name will always be present for docker login. The actual issue might be that you are missing the repository part when pull/push the image.
-
Ok. Thank you for the explanation. Curl command works now for me. Cup does not, but it seems to be a problem on their side, not OneDev's.
-
Previous Value Current Value Open
Closed
| Type |
Question
|
| Priority |
Normal
|
| Assignee | |
| Labels |
No labels
|
I'm trying to set up cup with onedev's container registry. But cannot make it work with authorization. I tried to test the endpoint manually and I also get 401 response:
TOKEN has "package reader" permissions to "project".
Tried to search for some help in docs, but haven't found anything.