vscode-coder icon indicating copy to clipboard operation
vscode-coder copied to clipboard

Skip token when a certificate is set

Open code-asher opened this issue 1 year ago • 1 comments

No need to do token auth in this case as the certificate is handling it.

  • [ ] Login (just skip the token prompt entirely)
  • [ ] Omit token for any queries we run (workspace status for example)
  • [ ] 401 response (just error, omit login button)

code-asher avatar May 08 '24 20:05 code-asher

We do this already for the Login case (no prompt if we have a certificate), see:

https://github.com/coder/vscode-coder/blob/a1ad85e03e1f92116a2771a67a3d34561d9a807c/src/api/utils.ts#L14-L20

Though I am not sure if we omit the token in the requests we send or not, also no omitting of the login button 🤔

EhabY avatar Nov 10 '25 16:11 EhabY