mirror of
https://github.com/Luzifer/nginx-sso.git
synced 2024-12-20 04:41:17 +00:00
Fix: Even with offline access no refresh token is present
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
9bd8af70e5
commit
c511e08ab7
1 changed files with 5 additions and 1 deletions
|
@ -162,7 +162,11 @@ func (a *AuthGoogleOAuth) Login(res http.ResponseWriter, r *http.Request) (user
|
|||
// method. If no login using this method is possible the function
|
||||
// needs to return nil.
|
||||
func (a *AuthGoogleOAuth) LoginFields() (fields []plugins.LoginField) {
|
||||
loginURL := a.getOAuthConfig().AuthCodeURL(a.AuthenticatorID(), oauth2.AccessTypeOffline)
|
||||
loginURL := a.getOAuthConfig().AuthCodeURL(
|
||||
a.AuthenticatorID(),
|
||||
oauth2.AccessTypeOffline,
|
||||
oauth2.SetAuthURLParam("prompt", "consent"),
|
||||
)
|
||||
|
||||
return []plugins.LoginField{
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue