✨ github oauth2 login /gitee oauth2 login
This commit is contained in:
21
config/conf_oauth.go
Normal file
21
config/conf_oauth.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package config
|
||||
|
||||
// OAuth is the configuration of OAuth.
|
||||
type OAuth struct {
|
||||
Github Github `yaml:"github"`
|
||||
Gitee Gitee `yaml:"gitee"`
|
||||
}
|
||||
|
||||
// Github and GiteeConfig are the configuration of Github and Gitee OAuth.
|
||||
type Github struct {
|
||||
ClientID string `yaml:"client-id"`
|
||||
ClientSecret string `yaml:"client-secret"`
|
||||
RedirectURI string `yaml:"redirect-uri"`
|
||||
}
|
||||
|
||||
// Gitee is the configuration of Gitee OAuth.
|
||||
type Gitee struct {
|
||||
ClientID string `yaml:"client-id"`
|
||||
ClientSecret string `yaml:"client-secret"`
|
||||
RedirectURI string `yaml:"redirect-uri"`
|
||||
}
|
Reference in New Issue
Block a user