- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我似乎记得 gapi.auth.authorize 有一个参数来指定一个 login_hint 来绕过帐户选择器。但我可能会谷歌,我找不到它。这只是一个梦吗?
我的问题是我遇到了帐户选择器在当前窗口下弹出的问题,因此用户错过了。
或者另一种提问方式可能是,像 login_hint 和 incremental auth 这样的参数如何 https://developers.google.com/accounts/docs/OAuth2UserAgent#incrementalAuth由 Javascript 库公开?
最佳答案
谷歌的 OAuth 2.0 documentation, under the heading Forming the URL , 表明接受了 login_hint
参数(例如,login_hint=email@fake.com
)。
JavaScript Client Library documentation, under gapi.auth.authorize
, 状态:
If the key is not one of the expected OAuth 2.0 parameters (see below), it is added to the URI as a query parameter.
所以你应该能够做到这一点:
gapi.auth.authorize({
// Parameters here...
'login_hint': 'email@fake.com',
// ...Parameters here
}, callbackFunc);
库将在请求 URL 中包含 login_hint
参数。
关于javascript - 如何将 login_hint 传递给 gapi.auth.authorize?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21942977/
我正在使用 Azure MobileServiceClient 通过移动应用进行身份验证。我想启用安全注销功能,其中涉及删除 Web 组件创建的 cookie。否则,如果周围潜伏着未过期的 cooki
我正在使用可用于登录的现成用户流程。我发现可以使用查询字符串参数 login_hint 传递电子邮件,但焦点仍然在电子邮件字段上,而我的客户希望避免使用额外的“选项卡”以加快登录过程。 我还找到了sa
我正在尝试将 login_hint 添加到 Azure AD 身份验证的 OpenID 登录请求。 将 login_hint 添加为属性对我不起作用: var properties = new Aut
我有一个 B2C 目录,我已经为这个目录设置了品牌。除此之外,我还使用自定义模板添加了登录、注册和重置策略。到目前为止没有问题。当我对登录策略发出质询时,页面将根据品牌配置呈现。当我尝试输入无效密码时
我正在使用 Google Sign-In JavaScript client并且还引用了 Example App 示例应用程序 (app.js) 告诉我 login_hint 是登录方法的有效选项:
我似乎记得 gapi.auth.authorize 有一个参数来指定一个 login_hint 来绕过帐户选择器。但我可能会谷歌,我找不到它。这只是一个梦吗? 我的问题是我遇到了帐户选择器在当前窗口下
在我的 OpenIdConnectAuthenticationOptions 中,我设置了 OpenIdConnectAuthenticationNotifications RedirectToIde
我们正在使用自定义登录/注册策略,将 Facebook、LinkedIn、Twitter、Google+ 配置为社交 IDP。 我们已经构建了一个自定义页面,我们要求用户提供他们的电子邮件,然后使用
获取使用Google api(oAuth2)的访问代码时,一个参数称为login_hint,其定义为; “当您的应用程序知道它正在尝试验证哪个用户时,它可能会将此参数作为提示提供给身份验证服务器。传递
我想将 login_hint 附加到对 Google 的身份验证请求中。我正在使用以下代码: FileDataStore fDS = new FileDataStore(Logger.Folder,
我一直在尝试向 AuthorizationCode 请求添加一个请求参数,作为 oauth2 身份验证流程的一部分,spring oauth2 过滤器向谷歌发送请求。具体来说,我需要添加一个 logi
我是一名优秀的程序员,十分优秀!