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

Unable to access web api: 401 unauthorized #63

Open
yuanminhui opened this issue Nov 28, 2023 · 3 comments
Open

Unable to access web api: 401 unauthorized #63

yuanminhui opened this issue Nov 28, 2023 · 3 comments
Labels
question Further information is requested

Comments

@yuanminhui
Copy link
Contributor

Describe the bug
Successfully starts an apiserver from build (swagger documents accessable), but functional endpoints are unreachable, returning a 401 error code. Some tokens or configs required?

To Reproduce
Start a bioos apiserver locally.

Expected behavior
Functional web service.

Screenshots
401-error-get-workspace

@yuanminhui yuanminhui added the bug Something isn't working label Nov 28, 2023
@KaiJiaBrother
Copy link

Use http://127.0.0.1:8888/workspace

@yuanminhui
Copy link
Contributor Author

Use http://127.0.0.1:8888/workspace

The same. Using the ip above just because it's running in wsl.

@ealyn
Copy link
Collaborator

ealyn commented Nov 30, 2023

Please post auth section of your apiserver config.
401 indicate authn/authz failure. If you configure authn.basic as conf/apiserver-mysql.yaml, you must click Authorize button at the top of swagger web and set Basic auth value.

@ealyn ealyn added question Further information is requested and removed bug Something isn't working labels Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants