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)
>

Reply via email to