No I am not using janrain.key file. But as i am trying janrain so i should
create as instead i was working with a different code
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)
and i had created a file with name janrain_api_key.txt in app/private/
folder now in this i added the api key provided by janrain.
After all this i find my application works but it only stucks at login. It
get sign in redirects to rpxnow page communicates the login information in
another page graps the permission and come back to my application but still
at same situation from where it starts. As the user doesn't get logged in.
On Monday, April 9, 2012 2:17:25 PM UTC+5:30, Roma Asnani wrote:
>
> I am trying to add janrain to my application for open id but it gives
> error like
>
> RPXNOW._base_cb(false, "Invalid Parameter: token_url must be an absolute
> URL");
> that describes i have to write complete URL in my janrain key file but it
> still is not working. Can anyone help.
>
>