【问题标题】:Extra Grant Pop up when requesting for Google Calendar permission请求 Google 日历权限时弹出额外授权
【发布时间】:2020-04-10 21:16:53
【问题描述】:

当用户尝试在我的网站上使用 google 注册时,Google 会向用户显示上述 3 个弹出窗口,但当我尝试注册时,它不会向我显示相同的弹出窗口。 我看到的是就这个——

这 3 个独立的弹出窗口导致我的网站大量下降。如何删除这 3 个不同的权限弹出窗口?

Google 登录按钮详细信息 - 使用 React Google Login

    <div className="manager-signup-container">
      <div className="content">Join Peoplebox as a Manager to have productive 1:1s that drive actions.</div>
      <GoogleLogin
      className={`google-btn-${this.state.loginbtnStatus}`}
      clientId={GOOGLE_CLIENT_ID}
      buttonText="Sign up with Google"
      onSuccess={(response) => this.responseOauth(response, "google")}
      onFailure={this.responseGoogleFail}
      responseType="code"
      scope="profile email https://www.googleapis.com/auth/calendar.events https://www.googleapis.com/auth/calendar.readonly"
      accessType="offline"
      prompt="consent"
      disabled={this.state.loginDisabled}
    />

【问题讨论】:

  • 我正在通过检查将code 交换为auth_token 时返回的范围来处理此问题。但如果有人能找到跳过这个流行音乐的方法,那就太好了。

标签: reactjs google-calendar-api google-signin google-apps google-login


【解决方案1】:

第三方 Google 应用的授权流程最近发生了变化,允许用户只接受他/她想要的权限。这样,用户可以更好地控制应用程序对其数据的访问权限。

目前,没有办法改变这种行为,也没有任何关于这种改变的公开文档/资源。

【讨论】:

  • 但旧应用程序在我注册它们时不会要求这些权限,例如 - calendly
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-07-12
  • 1970-01-01
  • 2021-05-24
  • 1970-01-01
相关资源
最近更新 更多