Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend documentation #67

Closed
3 of 8 tasks
stloyd opened this issue Jul 4, 2012 · 49 comments
Closed
3 of 8 tasks

Extend documentation #67

stloyd opened this issue Jul 4, 2012 · 49 comments

Comments

@stloyd
Copy link
Collaborator

stloyd commented Jul 4, 2012

What is missing:

  • docs for twitter and vkontakte,
  • how to set up connect functionality,
  • how to implement FOSUB connect bridge,
  • how to create custom connect bridge,
  • what is user_class_response and how to use it / implement own,
  • what are paths and how to use them,
  • list of extension points in generic resource owners
  • and... moar ? =)
@mablae
Copy link
Contributor

mablae commented Jul 14, 2012

Yes, docs are really lacking..

I am struggling since two day with it.

If anyone can help me in integrating the connect with FOSUserBundle, would be so nice!

I would write down as a doc if anyone could explain to me.

@nickrouty
Copy link
Contributor

+1 I'm also needing some help with the FOSUB connect docs, opened an issue myself with the code I currently have

Issue #81

@quba
Copy link

quba commented Jul 18, 2012

+1 for creating user using fosuserbundle.

@gimler
Copy link
Contributor

gimler commented Aug 1, 2012

vkontakte doc is done with PR #93

@Koc
Copy link
Contributor

Koc commented Aug 18, 2012

please add docs about connect functionality

@ruudk
Copy link
Contributor

ruudk commented Sep 16, 2012

@asm89 Could you please provide a gist with how to setup the connect functionality?

@albyrock87
Copy link

+1
I also need some documentation on HowTo integrate HWIOAB with FOSUB (login form - registration form).

@azr
Copy link

azr commented Sep 30, 2012

+1 Same here :)

@fvezzoso
Copy link

+1

3 similar comments
@knallgelb
Copy link

+1

@mente
Copy link
Contributor

mente commented Oct 3, 2012

+1

@vwasteels
Copy link

+1

@heyflynn
Copy link

heyflynn commented Oct 9, 2012

+1,000,000

@vpassapera
Copy link

+1
On Oct 9, 2012 12:32 PM, "heyflynn" notifications@github.com wrote:

+1,000,000


Reply to this email directly or view it on GitHubhttps://github.com//issues/67#issuecomment-9275806.

@vwasteels
Copy link

if it can help you, I finally succeded making HWIOauthBundle works with FOSUserBundle, mostly by following this code :
https://github.com/lmammino/just-had-a-cocktail

and this Issue :
#127

@rodrigodiez
Copy link

+6

@Nelrann
Copy link

Nelrann commented Nov 20, 2012

+1

@danvbe
Copy link

danvbe commented Jan 7, 2013

I have managed to make it work (HWIOauthBundle with FOSUserBundle)... this is the Gist.
Enjoy.

@azr
Copy link

azr commented Jan 8, 2013

Thanks alot ! :)

On Mon, Jan 7, 2013 at 7:08 PM, Barbus Sergiu notifications@github.comwrote:

I have managed to make it work (HWIOauthBundle with FOSUserBundle)... this
is the Gist https://gist.github.com/4476697.
Enjoy.


Reply to this email directly or view it on GitHubhttps://github.com//issues/67#issuecomment-11962996.

@asm89
Copy link
Contributor

asm89 commented Jan 8, 2013

@danvbe Can you distil that gist into a dedicated page on setting up the "connect" functionality? :)

@danvbe
Copy link

danvbe commented Jan 9, 2013

@asm89 I will give it a try.
You need an MD file with a more thorough explanation of the steps to follow in order to implement the "connect" functionality?

@mablae
Copy link
Contributor

mablae commented Jan 9, 2013

@danvbe 👍

@verschoof
Copy link
Contributor

It would also be nice to have steps from A-Z...
After the step to configure the bundle we don't have any docs to read for what to do?
If somebody makes a example would probably help!

I'm also stuck xD http://stackoverflow.com/questions/14423582/hwioauthbundle-bundle-symfony2

@danvbe
Copy link

danvbe commented Jan 21, 2013

@verschoof I have posted a Gist link with some directions (MD file) and source code for the configuration files. I hope will help.

@albyrock87
Copy link

@danvbe I love you! 👍
Your gist is fantastic, very clear! Thank you so much!

@verschoof
Copy link
Contributor

@danvbe I work just with a user entity provider. Now in the authenticate he calls getResourceOwnerByName That will go to my custom provider. But If my provider has no user found I want a login screen to connect his facebook to his account. But how to do that?

@danvbe
Copy link

danvbe commented Jan 23, 2013

@verschoof So... you want ONLY the connect option. If no user is connected on YOUR site you want him to FIRST log in and only AFTER that connect his accounts? In this case you should allow login/facebook like links only to authenticated users.

Generally, the desired functionality is as I described it in the Gist. As in, no user logged in MY SITE, when he/she authenticates via OAuth, a user record is AUTOMATICALLY created in my db, with details from the OAuth provider. I would say that your approach (after authenticating with OAuth provider give the user another authentication/login form) is not one of the best user experiences (as in... if I use FB account to authenticate on your site, I want it to automatically create a local user). But that's my opinion.

So... as a solution, simply ALLOW users to authenticate on FB only if they are already authenticated on your site. On the other hand... if you want to pre-populate a create user form with details from the OAuth provider... I think this can be done pretty simply: in your authenticate, when no user is found with getResourceOwnerByName function, simply create a new user form, prepopulated with data from OAuth provider and redirect there.... but yet again, IMO this is not a very user friendly solution.

@verschoof
Copy link
Contributor

Oke, now if i'm successfully logedin I go to the url: "/#=" how to change this to "/admin ?"

@garak
Copy link

garak commented Feb 11, 2013

👍

@userfriendly
Copy link

@verschoof - did you manage to get rid of the hash after the redirect from facebook?

@asm89
Copy link
Contributor

asm89 commented Mar 26, 2013

Facebook appends #_=_ by design: http://developers.facebook.com/bugs/318390728250352/.

@ip512
Copy link
Contributor

ip512 commented Apr 30, 2013

I try to use EntityUserProvider (service name: hwi_oauth.user.provider.entity) but I can't figure out how to make it work.
The service is abstract and seems to have to be redefined with class name. I don't see exactly how to do it. A simple example would be greatly appreciated !
:)

@diegocaprioli
Copy link

Can anyone provide me with one simple example of how to make this bundle work? I'm new to this bundle, and I'm trying to make it work in the most simple way, without FOSUserBundle. I have followed what the docs said about installing and configuring but I can't make it work. Thanks in advance!

@diegocaprioli
Copy link

Well, after a lot of try and error, I produced a first simple working example. Also decided to write it down: http://www.diegocaprioli.com/adding-hwioauthbundle-to-your-symfony2-project/
Please, this is a work in progress, if you have some feedback leave it in the comments or send me an email... it's just my first attempt in understanding the bundle and produce some tutorial for newcomers...

@Jolg42
Copy link

Jolg42 commented Apr 7, 2014

+1

@bagermen
Copy link

I can't make it work. :( I have tried all but in vain... Errors errors... Can anybody give a real working example? It seems that I just don't understand the magic... "expectup patrone" don't help either

@dupuchba
Copy link

dupuchba commented May 9, 2015

where we at with this issue ? can we close it ?

@gpilla
Copy link

gpilla commented Sep 9, 2015

+1

@mrjoops
Copy link

mrjoops commented Jul 5, 2017

This is a serious issue.
Actually I was quite impressed how fast I set up Google Open ID Connect with this bundle : 90% of the job done in 10 minutes !
But then I have to figure out how to configure EntityUser and automatic login, and after 5 hours of searching the web, I gave up and uninstalled the bundle in favor of a more low-level OAuth client.

@vpassapera
Copy link

@mrjoops are the gist or the website tutorial provided in this thread not giving the directions you're looking for?

@Jolg42
Copy link

Jolg42 commented Jul 5, 2017

@vpassapera I don't remember how to do it by I think I did a plain text research in GitHub last time searching for repos using it.

@mrjoops
Copy link

mrjoops commented Jul 5, 2017

@vpassapera sadly no, I can't find any working exemple implementing EntityUser, nor automatic login.
I use Google OpenID Connect to authenticate my users on my symfony application. My users are basically just usernames and tokens, so I don't need all the FOSUser overhead.

@ghost
Copy link

ghost commented Aug 21, 2017

I'm fighting with this at the moment, hard.
As I understand it, hwi_oauth.user.provider.entity is meant to be provided a user class, like outlined in the Symfony documentation, and work it's magic.
But how do I provide my user entity to hwi_oauth.user.provider.entity?
Do I need certain extends, implements, methods or variables in my class User?
Do I really need to write custom user provider for that?
Going through the FOS examples provided here and the source code, a lot of what I'm coding trying to code in the user provider seems pretty redundant...
I have a working user entity, tested with basic auth.
"hwi/oauth-bundle" (0.5.3) is working fine, using hwi_oauth.user.provider, authenticating with Google.
I don't need FOS and even if I did, I want to work through all levels (learning exercise).

Edit: About 30 seconds after I left my workstation yesterday night, I realized that I have been looking at the parameters the whole time. Reminded me that I get dense if I stare at the goat for too long...

Edit 2: Ok, I did id. If it's desirable, I'd write an extra page for your docs for configuring with hwi_oauth.user.provider.entity.

@jmbianca
Copy link

Hi @GermerCarsten,
I'll be very pleased to have a tutorial to configure this bundle with hwi_oauth.user.provider.entity
Thanks!

@MkLHX
Copy link

MkLHX commented Oct 17, 2017

Hi @GermerCarsten,
Like @jmbianca, please i'd like have an exemple for use the hwi_oauth.user.provider.entity.
Thanks!

@carlos-mg89
Copy link

@jmbianca or @MkLHX could you help me over there with his documentation: #1250

I'm in the same situation where you were and perhaps you found a way to set this up for hwi_oauth.user.provider.entity.

@MkLHX
Copy link

MkLHX commented Feb 15, 2020

@jmbianca or @MkLHX could you help me over there with his documentation: #1250

I'm in the same situation where you were and perhaps you found a way to set this up for hwi_oauth.user.provider.entity.

Hi,
I can’t help you because since this issue I quit the job and today I try to never use a third party component with bad or non updated documentation. Hwioauth bundle is a great project but when I wanted to use it miss some important things in the doc. I my memory I finish to use Twitter / Facebook sdks directly in the symfony project.
Good luck and work hard ;-)

@carlos-mg89
Copy link

Thanks for your answer and your thoughts @MkLHX it's indeed an option I'm considering, but I'll try a bit harder first :)

@jmbianca
Copy link

@jmbianca or @MkLHX could you help me over there with his documentation: #1250

I'm in the same situation where you were and perhaps you found a way to set this up for hwi_oauth.user.provider.entity.

Hi,
That's an old project and I'm not using it anymore (mainly because there's change in Twitter and Facebook API too often). I did not manage to use the hwi_oauth.user.provider.entity but I found a solution quit similar to this one (https://stackoverflow.com/questions/18264800/symfony2-how-to-login-using-oauth-hwioauthbundle-custom-roles-by-default-a) and it works well for me (using Facebook, Twitter and Google+ authentication).

Hope it will help you.

@stloyd stloyd closed this as completed Dec 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests