forked from forgejo/forgejo
go1.16 (#14783)
This commit is contained in:
parent
030646eea4
commit
47f6a4ec3f
947 changed files with 26119 additions and 7062 deletions
10
vendor/github.com/markbates/goth/providers/google/google.go
generated
vendored
10
vendor/github.com/markbates/goth/providers/google/google.go
generated
vendored
|
@ -184,3 +184,13 @@ func (p *Provider) SetHostedDomain(hd string) {
|
|||
}
|
||||
p.authCodeOptions = append(p.authCodeOptions, oauth2.SetAuthURLParam("hd", hd))
|
||||
}
|
||||
|
||||
// SetLoginHint sets the login_hint parameter for the google OAuth call.
|
||||
// Use this to prompt the user to login with a specific account.
|
||||
// See https://developers.google.com/identity/protocols/oauth2/openid-connect#login-hint
|
||||
func (p *Provider) SetLoginHint(loginHint string) {
|
||||
if loginHint == "" {
|
||||
return
|
||||
}
|
||||
p.authCodeOptions = append(p.authCodeOptions, oauth2.SetAuthURLParam("login_hint", loginHint))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue