Bio-OS / bioos

Apache License 2.0
58 stars 16 forks source link

Unable to access web api: 401 unauthorized #63

Open yuanminhui opened 11 months ago

yuanminhui commented 11 months ago

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
KaiJiaBrother commented 11 months ago

Use http://127.0.0.1:8888/workspace

yuanminhui commented 11 months ago

Use http://127.0.0.1:8888/workspace

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

ealyn commented 11 months ago

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.