feat: allow storing extra oauth token properties in the database (#10152)

This commit is contained in:
Kyle Carberry
2023-10-09 18:49:30 -05:00
committed by GitHub
parent 35538e1051
commit 863c2e7b64
25 changed files with 223 additions and 60 deletions
+1
View File
@@ -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
+1
View File
@@ -34,6 +34,7 @@ const (
EnhancedExternalAuthProviderGitHub EnhancedExternalAuthProvider = "github"
EnhancedExternalAuthProviderGitLab EnhancedExternalAuthProvider = "gitlab"
EnhancedExternalAuthProviderBitBucket EnhancedExternalAuthProvider = "bitbucket"
EnhancedExternalAuthProviderSlack EnhancedExternalAuthProvider = "slack"
)
type ExternalAuth struct {