KallyMilton / w2p-social-auth

Automatically exported from code.google.com/p/w2p-social-auth
Other
0 stars 0 forks source link

login drop down to login buttons #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Is this possible? I tried to create a link "/user/confirm?backend=facebook, but 
this didn't work.

I am sure there's one way to have login buttons. Thank you for great library. 
Let me post few bugs later

Original issue reported on code.google.com by ke...@tourbudy.com on 14 May 2014 at 8:49

GoogleCodeExporter commented 9 years ago
Hi,

I did't notice your issues until yesterday (got no notification from the issue 
tracker).

The "confirm" action is only meant to be used by the plugin internally to 
initiate the confirmation pipeline. So that will not work.

But it is possible to create any form you like so also one that contains 
buttons. But it's best to create a form which uses a web2py FORM helper. 

What you could do is create a subclass of SocialAuth and override the 
social_login() function to return your custom form.

Your form can contain your buttons and you must then use javascript/jquery to 
set the "click" events of those buttons to set some hidden input element to the 
proper "backend" value and then submit the form.

Anyway it's advisable to use a web2py FORM for this because it's most secure.

You could look at the source code of plugin_social_auth/utils.py to see how the 
forms are built and what vars are required.

Sorry but I have not included stuff like this because the UI part is really 
something everyone has to decide for themselves. The plugin is about the 
mechanics to glue in the python-social-auth module.

Original comment by muijsenb...@gmail.com on 24 May 2014 at 3:15

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
You know, i'm thinking of including a simple example for how to do this.

Original comment by muijsenb...@gmail.com on 24 May 2014 at 4:19

GoogleCodeExporter commented 9 years ago

Original comment by muijsenb...@gmail.com on 26 May 2014 at 7:47

GoogleCodeExporter commented 9 years ago
I added a button based ui and made it default.
I added some info to the description.

Could you let me know how this works for you?

Original comment by muijsenb...@gmail.com on 28 May 2014 at 10:11

GoogleCodeExporter commented 9 years ago
no response so close this.

Original comment by muijsenb...@gmail.com on 11 Jul 2014 at 6:00