Thanks.  I could/should have figured most of that out myself so sorry for 
the lame question but I appreciate the quick answer.  Also I talk about 
using Janrain because it exists and works, but all my comments are 
applicable to something that is completely free such as sanction if it was 
integrated.  I'm really just looking for social/oauth integration.  Thanks 
again.

On Friday, March 29, 2013 10:17:05 AM UTC-4, Anthony wrote:
>
> @Anthony - As I said I'm new to web2py and some of the built in stuff is 
>> still a black box to me.  Could you point me to where the auth code is?
>
>
> In order to use Auth, you have to do:
>
> from gluon.tools import Auth
>
> which indicates that the Auth code is in the Auth class within the 
> gluon.tools.py module: 
> https://code.google.com/p/web2py/source/browse/gluon/tools.py#843.
>
> For Janrain, you do:
>
> from gluon.contrib.login_methods.rpx_account import use_janrain
>
> So, that code is here: 
> https://code.google.com/p/web2py/source/browse/gluon/contrib/login_methods/rpx_account.py
> .
>
> Also if I enable Janrain the "register" button disables and I'm not sure 
>> where that behavior comes from.
>
>
> In the 
> use_janrain()<https://code.google.com/p/web2py/source/browse/gluon/contrib/login_methods/rpx_account.py#131>function,
>  auth.settings.actions_disabled is set to include 'register'. In 
> fact, you don't want to re-enable this because users are automatically 
> registered the first time they log in with Janrain. You don't want to 
> expose the standard register action because that allows setting a password. 
> Instead, you probably want to direct users to the 'profile' action (or some 
> customized version of it) where they can fill in their name, etc. (some of 
> the social login services may already have filled in the name).
>
> Anthony
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to