hwioauthbundle

FOSUserBundle + HWIOAuth security configuration failed

孤街醉人 提交于 2019-12-12 05:38:54
问题 I'm trying to get FOSUserBundle and HWIOAuth working together for handle the authentication of two types of users: representatives and interns. The representatives ones would begin using HWIOAuth and would use Salesforce and internal FOSUserBundle. I'm trying to set everything but I have problems because Symfony throws this error when I try to access the /login-salesforce or /admin routes. InvalidConfigurationException in BaseNode.php line 313: Invalid configuration for path "security

composer could not resolve dependencies for hwi/oauth-bundle

烂漫一生 提交于 2019-12-11 17:18:04
问题 If I do $ composer require hwi/oauth-bundle I get this: Using version ^0.6.3 for hwi/oauth-bundle ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Restricting packages listed in "symfony/symfony" to "4.2.*" Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request for hwi/oauth-bundle ^0.6.3 -> satisfiable by hwi/oauth-bundle[0.6.3]. - hwi/oauth-bundle 0.6.3

Symfony2 HWIOauthBundle error with response

荒凉一梦 提交于 2019-12-11 11:19:44
问题 i hope anybody can answer my below question. I running a project with symgfony2. I will offer users to import their CV from external plattforms like Linkedin or XING. What i dont need is offering the user the ability to login to my site through linkedin or Xing. So i though i can use for this the HwioAuthBundle but i can not figure it out, how to do this! At the moment is it like this that i come to loginpage on linkedin but when i come back to my site then i get the error: """ Controller

Smfony2 : HWIOauthBundle : Using multiple locales

若如初见. 提交于 2019-12-11 10:53:27
问题 I have implemented HWIOauhBundle in my Symfony2 project. Everything works fine except the use of different locales. My default locale is "fr". When logging and using "en" locale, the connexion works fine but I am redirected to the homepage corresponding to "fr" locale (the homepage is the default_target_path ). I only use google login. Any proposals ? My configuration is the following : app/config/routing.yml : hwi_oauth_redirect: resource: "@HWIOAuthBundle/Resources/config/routing/redirect

HWIOauthBundle & FOSUserBundle events not firing

泄露秘密 提交于 2019-12-08 12:05:57
问题 I have followed all of the advice found here for setting up the HWIOAuthBundle with the FOSUserBundle, but I wish to be able to access the events fired when a user registers and so far seem unable to do that. Having followed the advice in this question, here is my event subscriber (note that I am not interested in all of the events, but I just wanted to test if any of them were being fired): <?php namespace Acme\ClientBundle\EventListener; use FOS\UserBundle\Event\FilterUserResponseEvent; use

HWIOAuthBundle - FOSUserBundle - Symfony 2 - Redirect to custom path after login with facebook

百般思念 提交于 2019-12-07 08:53:59
问题 Reflected the following problem after the user login with the Facebook account: that is redirected to the following route /#_=_ How can I redirect it to this route instead: / Or to more to this /# ? On the client side, I use the backbone. 回答1: Redirect using javascript. Add following to the page. <script> // Handle facebook callback if (window.location.hash && window.location.hash == '#_=_') { window.location.hash = ''; } </script> 回答2: Taking @Prynz's idea, we can get further and create a

HWIOAuthBundle Google login device_id and device_name for a webapp

会有一股神秘感。 提交于 2019-12-06 18:21:54
问题 I am working on a Symfony2 app. I'm using FOSUserBundle to handle authentication and recently integrated it with FOSUserBundle using this tutorial: https://gist.github.com/danvbe/4476697 . The problem is: I can login using the google api on localhost and everything works fine. However when I try to login on a real server I get: Error: invalid_request device_id and device_name are required for private IP: http://<server_ip>/login/check-google Request details: response_type=code scope=https:/

HWIOAuthBundle - FOSUserBundle - Symfony 2 - Redirect to custom path after login with facebook

烂漫一生 提交于 2019-12-05 19:04:40
Reflected the following problem after the user login with the Facebook account: that is redirected to the following route /#_=_ How can I redirect it to this route instead: / Or to more to this /# ? On the client side, I use the backbone. Redirect using javascript. Add following to the page. <script> // Handle facebook callback if (window.location.hash && window.location.hash == '#_=_') { window.location.hash = ''; } </script> Taking @Prynz's idea, we can get further and create a "redirect to page user comes from" this way: 1) In your firewall, take care to remove the following lines: #

HWIOAuthBundle Google login device_id and device_name for a webapp

天涯浪子 提交于 2019-12-05 01:25:02
I am working on a Symfony2 app. I'm using FOSUserBundle to handle authentication and recently integrated it with FOSUserBundle using this tutorial: https://gist.github.com/danvbe/4476697 . The problem is: I can login using the google api on localhost and everything works fine. However when I try to login on a real server I get: Error: invalid_request device_id and device_name are required for private IP: http://<server_ip>/login/check-google Request details: response_type=code scope=https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile redirect_uri

How can I Override HWIOAuthBundle twig file

梦想的初衷 提交于 2019-12-01 09:13:16
I am new in HWIOAuthBundle with Symfony2.3 +FosUserBundle. I am using this bundle for facebook, twitter, googleplus login in my project. I have successfully install this and this working fine. But I want to override login.html.twig because I want to show facebook , twitter, google plus Images to our twig file but I don't know How I can do this in HWIOAuthBundle. My login.html.twig {% block content %} {# Bonus: Show all available login link in HWIOAuthBundle #} {% render(controller('HWIOAuthBundle:Connect:connect')) %} {% endblock %} Base HWIOAuthBundle login.html.twig {% extends