Update oauth2 lib (#8524)

* Update to latest oauth2 library using govendor

* Follow API changes
This commit is contained in:
Eirik Nygaard
2017-06-05 10:09:27 +02:00
committed by Torkel Ödegaard
parent f224fd8310
commit 1efdd92ae8
36 changed files with 458 additions and 2432 deletions

View File

@@ -64,7 +64,7 @@ func OAuthLogin(ctx *middleware.Context) {
if setting.OAuthService.OAuthInfos[name].HostedDomain == "" {
ctx.Redirect(connect.AuthCodeURL(state, oauth2.AccessTypeOnline))
} else {
ctx.Redirect(connect.AuthCodeURL(state, oauth2.SetParam("hd", setting.OAuthService.OAuthInfos[name].HostedDomain), oauth2.AccessTypeOnline))
ctx.Redirect(connect.AuthCodeURL(state, oauth2.SetAuthURLParam("hd", setting.OAuthService.OAuthInfos[name].HostedDomain), oauth2.AccessTypeOnline))
}
return
}