fix oauth2
This commit is contained in:
parent
9adc8e9d3f
commit
d6132aaa88
10 changed files with 185 additions and 251 deletions
|
@ -17,6 +17,7 @@ import (
|
|||
|
||||
"github.com/Unknwon/com"
|
||||
"github.com/Unknwon/goconfig"
|
||||
"github.com/macaron-contrib/oauth2"
|
||||
"github.com/macaron-contrib/session"
|
||||
|
||||
"github.com/gogits/gogs/modules/log"
|
||||
|
@ -434,9 +435,8 @@ type Mailer struct {
|
|||
}
|
||||
|
||||
type OauthInfo struct {
|
||||
ClientId, ClientSecret string
|
||||
Scopes string
|
||||
AuthUrl, TokenUrl string
|
||||
oauth2.Options
|
||||
AuthUrl, TokenUrl string
|
||||
}
|
||||
|
||||
// Oauther represents oauth service.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue