问题标签 [hwioauthbundle]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
2125 浏览

symfony - redirect_uri_mismatch 我第二次运行登录

我正在使用 HWIOAuthBundle 通过 oauth 创建用户。

第一次连接一切正常时,我创建了用户并在现场正确地进行了重定向:http://localhost/rememberme/web/app_dev.php/login/check-google

从我第二次与谷歌连接更多时返回我一个错误:

看来,一旦您是注册用户,就会更改重定向的链接。

为什么会这样?

有没有可能解决?

编辑

这是我的配置:

安全.yml:

配置.yml:

0 投票
2 回答
2609 浏览

symfony - 在 HWIOauthBundle 中连接到多个社交登录

我正在尝试安排能够使用社交网络登录(最初是 LinkedIn,但它可以是任何其他的,或者从 FosUserBundle 自行生成),然后通过 Twitter、FB、Github 向同一用户添加新连接,等等

困难在于在 FosUser 和 HWIOauthBundles 中连接多个帐户连接。为了尽可能多地收集数据,并能够轻松地向服务添加额外的连接,我真的希望将每个新连接都作为一对多记录。IE:使用 LinkedIn 的初始登录创建一个 FosUser 记录,并在“socialLogin”表中创建一个新行,下一个(例如使用 Twitter 登录)向“socialLogin”表添加一个新行,该行引用回 fosUser.id .

如何将当前登录的 (Fos) 用户用作 HWIOauth 将生成的新记录的一部分?最终结果将是,能够使用任何已知用户登录以进入同一帐户。

0 投票
2 回答
1845 浏览

symfony - HWIOAuthBundle - SSL 证书

我正在使用 Symfony2 在 Windows 上运行的 localhost[Wamp] 上开发一个网站,我需要使用 HWIOAuthBundle[facebook, Google] 登录到该站点,但是每次单击登录时,我都会收到以下错误消息:

SSL 证书问题:无法获取本地颁发者证书

我如何暂时避免此消息?

0 投票
1 回答
261 浏览

facebook - FOSFacebookBundle VS HWIOAuthBundle - 你更喜欢哪一个?

有两个流行的捆绑包用于连接 facebook 和基于 Symfony2 的应用程序:FOSFacebookBundleHWIOAuthBundle

哪一个更适合管理简单的 facebook 连接?

0 投票
2 回答
1763 浏览

symfony - 奇怪的 HWIOAuthBundle 和树枝错误“没有名为 'google' 的资源所有者。”

此错误由 /login 路由中的 HWIOAuthBundle 触发:

在第 8 行的 HWIOAuthBundle:Connect:login.html.twig 中呈现模板(“没有名为 'google' 的资源所有者。”)时引发异常。

甚至不清楚为什么它抱怨“谷歌”,而我们没有在任何地方引用它,而是在连接一个 facbook 连接。有没有人遇到同样的情况?

[2] RuntimeException: 没有名为“google”的资源所有者。在 E:\Projects\my_project\Symfony\vendor\hwi\oauth-bundle\HWI\Bundle\OAuthBundle\Security\OAuthUtils.php 第 220 行中的 n/a

0 投票
1 回答
2648 浏览

symfony - Symfony HWIOAuthBundle,如何配置 cURL?

在开发机器上,我们有 apache 附带的默认证书,当我们尝试使用 facebook 进行身份验证时,HWIOAuthBundle会引发异常:

SSL 证书问题:无法获取本地颁发者证书

很明显,在普通 PHP 中,我们需要设置一个选项CURLOPT_SSL_VERIFYPEER = false,然后传递给curl_setopt_array(...).

我们如何为 Symfony 或HWIOAuthBundle定义这些选项?

0 投票
1 回答
1910 浏览

php - symfony 2中无法识别的选项resource_owners

我正在使用HWIOAuthBundle集成FacebookoAuth 并且当我更新我的架构时出现以下错误

这是我的security.yml,我真的不知道这是什么错误

0 投票
2 回答
755 浏览

mongodb - FOSUBUserProvider 必须实现 UserProviderInterface

我们正在尝试按照这里描述的方式一起使用 FOSUserBundle 和 HWIOAuthBundle https://gist.github.com/danvbe/4476697

唯一的区别是我们使用的是 mongodb。触发此错误:

用户提供者“wf\UserBundle\Document\FOSUBUserProvider”必须实现“Symfony\Component\Security\Core\User\UserProviderInterface”

FOSUBUserProvider 是从这个示例中挑选出来的(src 在下面)。不应该 HWI\Bundle\OAuthBundle\Security\Core\User\FOSUBUserProvider 实现 Symfony\Component\Security\Core\User\UserProviderInterface 吗?

0 投票
1 回答
612 浏览

symfony - Symfony2.1 - trying to add google authentication with HWIOAuthBundle

im using SonataAdminBundle to develop my application with Symfony2. For the user login im trying to add google authentication. I configured HWIOAuthBundle as their documentation. everything smoothly configured and running. after google authentication prompt, it redirects to the following URL

with this URL, there is no any action assign with it so its giving error,

im using FOSUserBundle.

This is my config.yml,

Security.yml

routing.yml

0 投票
1 回答
430 浏览

php - 在 symfony2 中使用 hwioauthbundle 登录后可以获取用户配置文件信息吗?

我正在使用一个HWIOauthBundleSymfony2FOSUserBundle应用程序。

我有一种情况,用户可以选择在与登录无关的步骤创建个人资料对象,我想在这一步从他们的社交个人资料中获取数据。

用户已经登录后,是否可以使用 HWIOauthBundle 从服务获取配置文件信息?我可以在用户对象上创建字段并将它们存储在那里,直到他们在必要时创建配置文件,但如果可能,我更愿意跳过这一步。