【问题标题】:Connection using Gmail OAuth 2.0使用 Gmail OAuth 2.0 连接
【发布时间】:2019-06-25 13:54:54
【问题描述】:

我正在尝试使用 OAuth 2.0 连接到 Gmail。

但是,无法测试您是否不能加入 risky-access-by-unreviewed-apps 组。

Google 是否阻止加入该群组?或者有没有其他办法?

连接方法参考以下文章。 https://developers.google.com/gmail/imap/xoauth2-protocol

【问题讨论】:

    标签: oauth-2.0 gmail


    【解决方案1】:

    我在 google API 待处理电子邮件中提出了一个问题。

    之后主页的内容更新了。

    我在 risky-access-by-unreviewed-apps 组中看不到要注册的句子。

    我在 iOS 上开发。

    问题是G-Mail连接授权未在登录时添加权限。

    我通过添加 G-Mail 权限解决了这个问题。

    额外的权威来源

    [GIDSignIn sharedInstance].scopes = [NSArray arrayWithObjects:@"https://www.googleapis.com/auth/userinfo.profile", @"https://www.googleapis.com/auth/userinfo.email", @"https://mail.google.com", nil];
    

    IMAP JAVA 连接测试:https://github.com/google/gmail-oauth2-tools/wiki/JavaSampleCode

    【讨论】:

      猜你喜欢
      • 2011-07-08
      • 2015-08-25
      • 1970-01-01
      • 1970-01-01
      • 2016-12-06
      • 1970-01-01
      • 2014-09-10
      • 2022-06-10
      • 2014-12-31
      相关资源
      最近更新 更多