Hi Sonu,

Please read this again :-

*register a domain (the name of your app) and set of URLs you will be using*

than use the key and the domain name with this following code it will work 
like charm i allready tried.

from gluon.contrib.login_methods.rpx_account import RPXAccount
auth.settings.actions_disabled=['register','change_password','request_reset_password']
auth.settings.login_form = RPXAccount(request,
    api_key='...',
    domain='...',
    url = "http://localhost:8000/%s/default/user/login"; % request.application)



On Tuesday, April 10, 2012 10:58:52 AM UTC+5:30, Sonu Srivastava wrote:
>
> for using multiple signin i am register with rpxnow.com and create app 
> and use the key in our web2py application bt i m unable to login...plz help 
> me...i use below code for it
>
> import os
> from gluon.contrib.login_methods.rpx_account import RPXAccount
> # we disable actions that will be provided by Janrain, not auth
> auth.settings.actions_disabled = 
> ['register','change_password','request_reset_password']
> # we read the key frm a file because we want to keep it private
> api_key 
> =open(os.path.join(request.folder,'private','janrain_api_key.txt'),'r').read().strip()
> # we connect auth to janrain
> auth.settings.login_form = RPXAccount(request, 
> api_key=api_key,domain='web2py',
>     url = "http://localhost:8000/%s/default/user/login"; % 
> request.application)
>

Reply via email to