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

[FEAT] Bypass password authentication for API calls #190

Open
1 task done
helgehatt opened this issue Jan 15, 2025 · 1 comment
Open
1 task done

[FEAT] Bypass password authentication for API calls #190

helgehatt opened this issue Jan 15, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@helgehatt
Copy link

Is this a new feature request?

  • I have searched the existing issues

Wanted change

I have a server running on https://3000.example.tld and a client running on https://4000.example.tld
When I navigate to https://3000.example.tld I am redirected to https://3000.example.tld/login with

Welcome to code-server
Please log in below. Password was set from $PASSWORD.

and after inputting password I can navigate to https://3000.example.tld/api/endpoint to get a valid JSON response.

However, when the client running on https://4000.example.tld tries to request a resource on the server, I simply get 401, because the client has obviously not "logged in" to the server. How is the correct way to solve this?

Reason for change

The code-server is exposed to the internet, so I can't simply remove the password authentication. However, the client and server have their own authentication mechanisms, so it wouldn't be necessary with password authentication on the proxy domains.

Proposed code change

No response

@helgehatt helgehatt added the enhancement New feature or request label Jan 15, 2025
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Issues
Development

No branches or pull requests

1 participant