Skip to content

How to use url or use requst header property to input the single password for auth #6637

Answered by code-asher
WeBeautifulNow asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry for being unclear, I meant to say you can authenticate individual requests by setting the cookie. But this does not let you do auto-login.

Thinking about it some more, maybe you could do it with a POST request from your application? For example:

<form action="https://<domain>/login" method="post">
  <!-- Change base if you have code-server on a sub-path.  For example if
  code-server is on <domain>/foo/bar/ then base would be ./../..-->
  <input id="base" type="hidden" name="base" value=".">
  <input id="href" type="hidden" name="href" value="https://<domain>/login">
  <input id="href" type="hidden" name="password" value="test">
  <input value="launch code-server" type="submit">
</f…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@WeBeautifulNow
Comment options

@code-asher
Comment options

Answer selected by WeBeautifulNow
@WeBeautifulNow
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants