Skip to content
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

creating or listing robots does not work with basic auth``` #20925

Open
abdulsalamalmahdi opened this issue Sep 13, 2024 · 0 comments
Open

creating or listing robots does not work with basic auth``` #20925

abdulsalamalmahdi opened this issue Sep 13, 2024 · 0 comments
Labels
help wanted The issues that is valid but needs help from community

Comments

@abdulsalamalmahdi
Copy link

          ```

curl -i -k -X 'POST' \
'https://regiester.y.../api/v2.0/robots '
-v
-H 'accept: application/json'
-H 'Content-Type: application/json'
-H 'Authorization: Basic '
-d '{
"secret": "secret",
"disable": true,
"name": "test-curl",
"level": "system",
"duration": 30,
"description": "test curl with basic auth",
"permissions": [
{
"access": [
{
"action": "create",
"resource": "project",
"effect": "allow"
}
],
"kind": "project",
"namespace": "ns"
}
]
}'

still does not work
`{"errors":[{"code":"UNAUTHORIZED","message":"unauthorized"}]}`

_Originally posted by @abdulsalamalmahdi in https://github.com/goharbor/harbor/issues/16398#issuecomment-2348497454_
            
@stonezdj stonezdj added the help wanted The issues that is valid but needs help from community label Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted The issues that is valid but needs help from community
Projects
None yet
Development

No branches or pull requests

2 participants