mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-04 23:00:30 +08:00
Go: remove unused code (#17680)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -30,26 +30,6 @@ import (
|
||||
// DefaultConnectTimeout default connection timeout for external services
|
||||
const DefaultConnectTimeout = 5 * time.Second
|
||||
|
||||
// OAuthConfig OAuth configuration for a channel.
|
||||
// Mirrors api/apps/auth/__init__.py's OAUTH_CONFIG entries: a Type that
|
||||
// selects the auth client flavor (oauth2 / oidc / GitHub), plus the
|
||||
// transport URLs and client credentials. For OIDC the URLs are derived
|
||||
// from Issuer via the .well-known/openid-configuration document, so they
|
||||
// may be left blank.
|
||||
type OAuthConfig struct {
|
||||
DisplayName string `mapstructure:"display_name"`
|
||||
Icon string `mapstructure:"icon"`
|
||||
Type string `mapstructure:"type"`
|
||||
ClientID string `mapstructure:"client_id"`
|
||||
ClientSecret string `mapstructure:"client_secret"`
|
||||
AuthorizationURL string `mapstructure:"authorization_url"`
|
||||
TokenURL string `mapstructure:"token_url"`
|
||||
UserinfoURL string `mapstructure:"userinfo_url"`
|
||||
RedirectURI string `mapstructure:"redirect_uri"`
|
||||
Scope string `mapstructure:"scope"`
|
||||
Issuer string `mapstructure:"issuer"`
|
||||
}
|
||||
|
||||
var (
|
||||
globalConfig *config.Config
|
||||
globalViper *viper.Viper
|
||||
|
||||
Reference in New Issue
Block a user