TypeFox / open-collaboration-tools

Open Collaboration Tools: live-sharing solution for Eclipse Theia, VS Code and other editors and IDEs
https://www.open-collab.tools/
MIT License
81 stars 5 forks source link

Ability to add custom auth endpoints and added github and google auth #20

Closed jonah-iden closed 2 months ago

jonah-iden commented 2 months ago

Simple login is by default deactivated and needs to be enabled by setting the OCT_ACTIVATE_SIMPLE_LOGIN env variable too true Other oauth enpoints are also deactivated until the env variables for clientId and Client Secret are set

Its sadly hard to create one single oauth endpoint, since we need user information like name, and not all clients are doing that the same way. So therefore adding a custom provider requires a little bit of code. Could maybe be done for OIDC since there getting userinfo is standardized. But Github for example is only supporting OAuth2.0 which only includes the access token