| package system_setting |
|
|
| import "github.com/QuantumNous/new-api/setting/config" |
|
|
| type OIDCSettings struct { |
| Enabled bool `json:"enabled"` |
| ClientId string `json:"client_id"` |
| ClientSecret string `json:"client_secret"` |
| WellKnown string `json:"well_known"` |
| AuthorizationEndpoint string `json:"authorization_endpoint"` |
| TokenEndpoint string `json:"token_endpoint"` |
| UserInfoEndpoint string `json:"user_info_endpoint"` |
| } |
|
|
| |
| var defaultOIDCSettings = OIDCSettings{} |
|
|
| func init() { |
| |
| config.GlobalConfig.Register("oidc", &defaultOIDCSettings) |
| } |
|
|
| func GetOIDCSettings() *OIDCSettings { |
| return &defaultOIDCSettings |
| } |
|
|