Add authentication Option #156
-
I would love to contribute a new feature where you can deploy this server with the option to have it serve up an Oauth splash screen before allowing a user to go to the workspace. Only authenticated users would be allowed to use the workspace in this use case. Additionally or optionally, adding the option to force a user to provide a password before going to the workspace. I would love the chance to contribute to this project but want to make sure this feature would be welcomed by the community / maintainers before spending too much time on it. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Auth is not in the scope. It changes from adopter to adopter. Please see for the scope: https://github.com/gitpod-io/openvscode-server#the-scope-of-this-project |
Beta Was this translation helpful? Give feedback.
-
@akosyakov Would a better option be to look at providing the hooks for people to integrate their own auth. It feels like auth is something that multiple users of this would like to have and would be nice to have a semi standard way of integrating that auth into the project. |
Beta Was this translation helpful? Give feedback.
-
@andymac4182 what kind of hooks are you thinking about? I don't think it is necessary/reasonable to integrate hooks for auth in this project. @akosyakov +1 for keeping this as close as possible to the official vscode repo. |
Beta Was this translation helpful? Give feedback.
-
There are already hooks btw, you can provide your own entry point and pass different options to main, here example in Gitpod: Although I don't think you need to bake in auth in server, but build around via a reverse proxy for instance. |
Beta Was this translation helpful? Give feedback.
-
Simple auth has been added in release 1.62, see https://github.com/gitpod-io/openvscode-server#a-note-about-security-tokens for details. |
Beta Was this translation helpful? Give feedback.
Auth is not in the scope. It changes from adopter to adopter. Please see for the scope: https://github.com/gitpod-io/openvscode-server#the-scope-of-this-project