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

How to use the 'Anonymous' user model with the swagger rest client #888

Closed
huzhengchuan opened this issue Oct 16, 2016 · 2 comments
Closed

Comments

@huzhengchuan
Copy link
Contributor

I use the harbor in 0.4 version. In the guide, it say 'An anonymous user has no access to private projects and has read-only access to public projects.'. When I visit the api/projects with the python client , which generated by swagger-tools. I not setting the auth_setting in https headers. it response 401 authorize error. I didnot know how to visit harbor in an anonymous user with the swagger-rest-client.

@hainingzhang
Copy link
Contributor

even as a anonymous user, you still need to log in as a user of Harbor in order to perform anonymous access. The swagger guide with user login can be found in this link:
https://github.com/vmware/harbor/blob/master/docs/configure_swagger.md

@huzhengchuan
Copy link
Contributor Author

huzhengchuan commented Nov 3, 2016

I Know, Thanks for your help. I will close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants