Ya...i am already register with janrain and create a application and also got API Key and i use that API key for my application...
following code i use... import os from gluon.contrib.login_methods.rpx_account import RPXAccount auth.settings.actions_disabled = ['register','change_password','request_reset_password'] api_key =open(os.path.join(request.folder,'private','janrain_api_key.txt'),'r').read().strip() auth.settings.login_form = RPXAccount(request, api_key=api_key,domain='web2py', url = "http://localhost:8000/%s/default/user/login" % request.application) i am using localhost in domain whitelist in janrain when i login from my application than it redirects to rpxnow with key but again it shows my login page *Thanks regards,* *Sonu Kumar Srivastava* *Trainee* *8955199189* *www.zero-group.com* <http://www.zero-group.com> On Wed, Apr 11, 2012 at 2:39 PM, Sanjeet Roy <sanjeet.ro...@gmail.com>wrote: > Janrain Engage is a service that provides middleware authentication. You > can register with Janrain <http://Janrain.com>, register a domain (the > name of your app) and set of URLs you will be using, and they will provide > you with an API key. > > 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) >> >