add oauth loginlog & fix bugs
This commit is contained in:
@@ -5,4 +5,5 @@ type Gin struct {
|
||||
AdminAddr string `mapstructure:"admin-addr"`
|
||||
Mode string
|
||||
ResourcesPath string `mapstructure:"resources-path"`
|
||||
TrustProxy string `mapstructure:"trust-proxy"`
|
||||
}
|
||||
|
||||
13
config/oauth.go
Normal file
13
config/oauth.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package config
|
||||
|
||||
type GithubOauth struct {
|
||||
ClientId string `mapstructure:"client-id"`
|
||||
ClientSecret string `mapstructure:"client-secret"`
|
||||
RedirectUrl string `mapstructure:"redirect-url"`
|
||||
}
|
||||
|
||||
type GoogleOauth struct {
|
||||
ClientId string `mapstructure:"client-id"`
|
||||
ClientSecret string `mapstructure:"client-secret"`
|
||||
RedirectUrl string `mapstructure:"redirect-url"`
|
||||
}
|
||||
Reference in New Issue
Block a user