mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
feat: enable GitHub OAuth2 login by default on new deployments (#16662)
Third and final PR to address https://github.com/coder/coder/issues/16230. This PR enables GitHub OAuth2 login by default on new deployments. Combined with https://github.com/coder/coder/pull/16629, this will allow the first admin user to sign up with GitHub rather than email and password. We take care not to enable the default on deployments that would upgrade to a Coder version with this change. To disable the default provider an admin can set the `CODER_OAUTH2_GITHUB_DEFAULT_PROVIDER` env variable to false.
This commit is contained in:
Generated
+11
@@ -373,6 +373,17 @@ Client secret for Login with GitHub.
|
||||
|
||||
Enable device flow for Login with GitHub.
|
||||
|
||||
### --oauth2-github-default-provider-enable
|
||||
|
||||
| | |
|
||||
|-------------|-----------------------------------------------------------|
|
||||
| Type | <code>bool</code> |
|
||||
| Environment | <code>$CODER_OAUTH2_GITHUB_DEFAULT_PROVIDER_ENABLE</code> |
|
||||
| YAML | <code>oauth2.github.defaultProviderEnable</code> |
|
||||
| Default | <code>true</code> |
|
||||
|
||||
Enable the default GitHub OAuth2 provider managed by Coder.
|
||||
|
||||
### --oauth2-github-allowed-orgs
|
||||
|
||||
| | |
|
||||
|
||||
Reference in New Issue
Block a user