mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: allow storing extra oauth token properties in the database (#10152)
This commit is contained in:
@@ -336,6 +336,7 @@ type ExternalAuthConfig struct {
|
||||
AppInstallationsURL string `json:"app_installations_url"`
|
||||
NoRefresh bool `json:"no_refresh"`
|
||||
Scopes []string `json:"scopes"`
|
||||
ExtraTokenKeys []string `json:"extra_token_keys"`
|
||||
DeviceFlow bool `json:"device_flow"`
|
||||
DeviceCodeURL string `json:"device_code_url"`
|
||||
// Regex allows API requesters to match an auth config by
|
||||
|
||||
@@ -34,6 +34,7 @@ const (
|
||||
EnhancedExternalAuthProviderGitHub EnhancedExternalAuthProvider = "github"
|
||||
EnhancedExternalAuthProviderGitLab EnhancedExternalAuthProvider = "gitlab"
|
||||
EnhancedExternalAuthProviderBitBucket EnhancedExternalAuthProvider = "bitbucket"
|
||||
EnhancedExternalAuthProviderSlack EnhancedExternalAuthProvider = "slack"
|
||||
)
|
||||
|
||||
type ExternalAuth struct {
|
||||
|
||||
Reference in New Issue
Block a user