Questions tagged [hwioauthbundle]

HWIOAuthBundle adds support for authenticating users via OAuth in Symfony2.

HWIOAuthBundle adds support for authenticating users via OAuth (OAuth1.0a or OAuth2) in .

The bundle contains support for 20+ different providers.

Documentation

  • for Symfony ^4.4 & ^5.0: 0.4
256 questions
1
vote
2 answers

How to setup HWIOAuthBundle with Symfony4.3?

I have project on SF4.3 and i don't use FOSUserBundle. How to setup HWIOAuthBundle? Configuration that i have now: security.yaml main: anonymous: ~ oauth: resource_owners: facebook: …
Loctarogar
  • 540
  • 3
  • 10
  • 29
1
vote
1 answer

Azure authentication Symfony

I've created a Symfony 4.2 app, and i want to add a Microsoft authentication in it, so after many research on the web I've found a library called HWIOAuthBundle i've followed everystep but I still have issue If anyome can help me it can be very…
Stoufiler
  • 175
  • 1
  • 2
  • 13
1
vote
1 answer

HWIOAuthBundle custom user provider will not login user

I'm using HWIOAuthBundle with Symfony 4.1. My custom user provider gets called and returns a valid user, however the user is not logged in after the redirect. The web profiler shows: logged in as anon; anonymous token; firewall main I've simplified…
Coder1
  • 13,139
  • 15
  • 59
  • 89
1
vote
0 answers

What's wrong with my HWIOAUTHBUNDLE config?

I'm using Symfony 3.4 with FOSUSERBundle, my facebook button was working and then suddenly nothing. Just "No oauth code in the request" message. Can someone tell me where my config is incorrect, or share a config that will…
EmmCall
  • 168
  • 1
  • 1
  • 13
1
vote
1 answer

No property defined for entity for resource owner 'google' and 'facebook'

Hi everyone I have setup my UserProvider as per danvbe's gist (https://gist.github.com/danvbe/4476697). but i got this issue in both facebook and google. Here is my code: config.yml: hwi_oauth: connect: account_connector:…
chinhnguyen
  • 73
  • 1
  • 16
1
vote
0 answers

FOSUserBundle login form and HWIOAuthBundle on the same page, and handling AccessDeniedExceptions

My problem in short is this: I have a page (/check-in/:training_id/) where the user can buy trainings. When they access this page and are not logged in I want to redirect them to the /login page where I've put FOSUserBundle's login form with some…
1
vote
1 answer

installing HWIOAuthBundle via composer exception about wrong php version

Hi I want install to project on symfony HWIOAuthBundle My PHP version (in CLI): 7.1.11 Symfony version: 2.8.31 but after running command: composer require hwi/oauth-bundle php-http/guzzle6-adapter php-http/httplug-bundle i get this…
Lajdák Marek
  • 2,969
  • 8
  • 29
  • 58
1
vote
0 answers

Register user with HWIOAuthBundle without Register Form

I am using HWIOAuthBundle with FOSUserBundle and it's work fine. My probleme is : When The User choose to connect with Facebook for exemple, the page it redirects me to the Facebook Accounts, authorizes and returns back to the register form with…
1
vote
1 answer

Symfony 3.3 ( HWIOAuthBundle + FOSUserBundle) Invalid key "user_manager" found in arguments

I've just updated to Symfony 3.3 and now I get that error message : Invalid key "user_manager" found in arguments of method "__construct()" for service "app.fos_user.oauth_provider": only integer or $named arguments are allowed. I don't…
EmmCall
  • 168
  • 1
  • 1
  • 13
1
vote
0 answers

Serialization UploadedFile

If I have an upload User form (setting one field of an entity to UploadedFile), then the serialization of this entity will fail, since UploadedFile ($imageFile) is not serializable. [1/2] Exception: Serialization of …
famas23
  • 2,072
  • 4
  • 17
  • 53
1
vote
3 answers

Serialization of UploadedFile is not allowed

I'm trying to upload a file via vichuploader bundle on my Users entity. Using hwioauthbundle that implements UserInterface, and i think the errors comes from that bundle... So every time i try to uplod a file i got this exception : Serialization…
famas23
  • 2,072
  • 4
  • 17
  • 53
1
vote
1 answer

HWIOauthBundle - Facebook Login - Symfony3

I had implemented HWIOauthBundle + FOSUserBundle into my app, and it's working, partially. Login is working perfectly with and without facebook but, if I login normally with a user that doesn't exists or with a wrong password, it will redirect me to…
Kiddo
  • 913
  • 2
  • 9
  • 13
1
vote
1 answer

PHP Symfony3 - HWIOAuthBundle: Facebook Login redirecting problems

At the start, I can say that I had implemented the Facebook Login button and after I'm clicking on it, it's asking me for login details > app allow > and after I'm trying to put my credentials, is not redirecting me on dashboard, and is not logging…
Kiddo
  • 913
  • 2
  • 9
  • 13
1
vote
0 answers

Symfony 3.1 login errors are not bubbling up with HWIOAuthBundle + FOSUserBundle

The integration of HWIOAuthBundle + FOSUserBundle works fine along with the Facebook and Google sign-in option (Symfony 3.1). If the user enters valid username and password, then no worries, everything is smooth. However when the credentials are…
Ren
  • 330
  • 6
  • 23
1
vote
1 answer

HWIOAuthBundle registered in AppKernel, but still not found

my bundle is registered , but I still get this error in 'AppKernel.php' at this line: new HWI\Bundle\OAuthBundle\HWIOAuthBundle() My error: ClassNotFoundException in AppKernel.php line 13: Attempted to load class "HWIOAuthBundle" from namespace…
Darius92
  • 301
  • 5
  • 21