繁体   English   中英

在集成Google Plus的同时如何在angular js中使用Google Oauth接收refresh_token

[英]How do I receive refresh_token with google Oauth in angular js while integrating Google Plus

我的代码如下所示。 它没有返回我刷新令牌

  gapi.signin.render('signInButton',
  {
    'callback': $scope.signInCallback,
    'clientid': '***', 
    'requestvisibleactions': 'http://schemas.google.com/AddActivity',
    'scope': 'https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email',
    'cookiepolicy': 'single_host_origin',
    'access_type': 'offline'
  }

出于安全原因,在OAuth 2.0的implicit grant typerefresh_token不可用。 因此,您无法使用javascript获取refresh_token

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM