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
21
votes
1 answer

Symfony2 HwioAuth - getting full profildetail from linkedin

i already opened yesterday a topic for my questions about hwioauthbundle in symfony2. Symfony2 HWIOauthBundle error with response Thanks to stloyd for his answer, this helped me to figure it out how to use the bundle for getting access to…
user2742271
  • 221
  • 3
  • 5
13
votes
2 answers

HWIOAuthBundle Google login device_id and device_name for a webapp

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…
user3460035
  • 131
  • 1
  • 1
  • 4
12
votes
2 answers

Symfony 3, populating token and refreshing user

repository with issue I have a form for entity User with email field: ->add('email', EmailType::class, [ 'constraints' => [ new NotBlank(), new Email([ 'checkMX' =>…
kRicha
  • 797
  • 9
  • 27
12
votes
1 answer

How to simulate authentication via HWIOAuth in a Symfony2 functional test?

HWIOAuthBundle is a composer bundle enabling social login in Symfony2 projects: https://github.com/hwi/HWIOAuthBundle The Symfony2 docs give an example of how to simulate authentication in a functional…
astletron
  • 1,387
  • 1
  • 14
  • 26
12
votes
3 answers

Simple API Key Authentication in Symfony2 using FOSUserBundle (and HWIOauthBundle), filling in the gaps

Edit: See below for my own solution, which is, at the time of writing, functioning but imperfect. Would love some criticism and feedback, if I get something put together that I feel is really solid then I'll make a howto blog post for other people…
Pez
  • 1,251
  • 16
  • 32
10
votes
2 answers

Refresh oauth2 token google api and HWIOAuthBundle

How i can refresh token ? I use Google api with this token - it work but can't find how to refresh it, in this example we dont save expired time. I require `access_type: offline ` then $client = new Google_Client(); …
Developer
  • 2,731
  • 2
  • 41
  • 71
8
votes
1 answer

Unrecognized option "firewall_name" under "hwi_oauth"

After upgrade of my project to symfony 2.8 I get the following error when I push the code to staging server. [Symfony\Component\Config\Definition\Exception\InvalidConfigurationException] Unrecognized option "firewall_name" under "hwi_oauth" …
razormind
  • 103
  • 1
  • 7
8
votes
2 answers

HWIOAuthBundle, how to manually authenticate User with a Facebook access token?

I have a website (Symfony2) with HWIOauthBundle used to connect with Facebook and everything works fine. Now, I'm trying to build an iOS app with Cordova and Ionic framework (AngularJS) and I want to authenticate my user with Facebook : With…
Sylvain
  • 2,742
  • 5
  • 21
  • 34
8
votes
3 answers

Symfony2 - HWI/OAuthBundle can't find user provider

Trying to connect facebook using HWI/OAuthBundle, following all of the steps that say in HWI/OauthBundle Doc, but it return error There is no user provider for user "HWI\Bundle\OAuthBundle\Security\Core\User\OAuthUser" Does anyone can explain for…
Wirata Adidharma
  • 135
  • 4
  • 11
8
votes
2 answers

Symfony2: Make users complete registration after login if some fields are missing

I'm using HWIOAuthBundle to let an user login with Oauth, I've created a custom user provider which creates an user in case it doesn't exist: public function loadUserByOAuthUserResponse(UserResponseInterface $response) { $attr =…
alex88
  • 4,788
  • 4
  • 39
  • 60
7
votes
1 answer

FOSUserBundle and HWIOAuthBundle registration

I am trying to combine FOSUserBundle and HWIOAuthBundle following articles like https://gist.github.com/danvbe/4476697. However, I do not want the automatic registration of OAuth2 authenticated new users: additional information should be provided by…
TacoV
  • 424
  • 1
  • 5
  • 17
7
votes
1 answer

Symfony2: How to login using OAuth (HWIOAuthBundle) + custom roles (by default and loaded from DB)

Note: the questions are at the end of this text but I will explain in detail all the context for a better understanding. I'm developing a Symfony2 application consisting of 3 modules: Module for students -> Needs the role ROLE_STUDENT Module for…
luisete89
  • 200
  • 1
  • 2
  • 11
6
votes
1 answer

Using HWIOAuthBundle and LexikJWT at the same time

As the title suggests, I'm going to use Facebook,Google and GitHub authentication alongside JWT authenticator (LexikJWT). Before starting, I want to know how can I use them? is it possible to use both of them to protect APIs? If yes, what sort of…
6
votes
1 answer

Symfony 3.0 and HWIOAuthBundle not working together?

I want to install HWIOAuthBundle in a Symfony 3.0 project. It seems that there is a capping on dependencies and HWIOAuthBundle 0.4 is working only with prior versions of Symfony 3.0. Is there any 0.5 version of HWIOAuthBundle rolling or do I have…
orouwk
  • 355
  • 3
  • 13
6
votes
3 answers

Symfony 2 | HWIOAuthBundle - How to create custom resource owner?

I started to implement HWIOAuthBundle and want to create my own custom resource owner. However I'm unclear about the file/directory structure. Where would I need to place my files to take advantage of the bundle?
n00b
  • 16,088
  • 21
  • 56
  • 72
1
2 3
17 18