1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-25 08:59:31 -05:00
This commit is contained in:
Unknwon 2014-11-30 10:55:26 -05:00
parent 5c866fc737
commit 82da024a4d

View file

@ -143,9 +143,11 @@ func newMacaron() *macaron.Macaron {
}))
// OAuth 2.
if setting.OauthService != nil {
for _, info := range setting.OauthService.OauthInfos {
m.Use(oauth2.NewOAuth2Provider(info.Options, info.AuthUrl, info.TokenUrl))
}
}
m.Use(middleware.Contexter())
return m
}