Sonu are you tried this following link where you have to include the your 
RPXAccount application key and the domain name it is working fine

http://web2py.com/books/default/chapter/29/9#Other-login-methods-and-login-forms
 and  
<http://web2py.com/books/default/chapter/29/9#Other-login-methods-and-login-forms>



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