Problem with RPX - janrain engage

13 views
Skip to first unread message

Bruno Rocha

unread,
Nov 11, 2010, 3:57:12 PM11/11/10
to web...@googlegroups.com
HI,

I am trying to activate janrain as the loggin method, and I want to keep the normal login method too.

but I am getting this error: "This frame was blocked because it contains insecure content."


Any idea?

Bruno Rocha

unread,
Nov 11, 2010, 4:02:33 PM11/11/10
to web...@googlegroups.com
SOLVED!

It was an error on configuration, domain parameter on RPXAccount expect just a domainname, I was providing full URL.

Thanks

2010/11/11 Bruno Rocha <rocha...@gmail.com>

Albert Abril

unread,
Nov 11, 2010, 4:04:08 PM11/11/10
to web...@googlegroups.com
hehe.. it happens to me too.

you should write only the name of the subdomain.
if you have http://web2pyapp.rpxnow.com , you have to write only 'web2pyapp' .
I hope this help to others.

Regards!

Bruno Rocha

unread,
Nov 11, 2010, 4:08:44 PM11/11/10
to web...@googlegroups.com
It is a commom mistake, so I think is a good idea to include a note in /book and in db.py for scaffold app.



2010/11/11 Albert Abril <albert...@gmail.com>

Bruno Rocha

unread,
Nov 11, 2010, 4:46:28 PM11/11/10
to web...@googlegroups.com
Somebody knows how can I use RPX and Normal Login form in the same way that web2pyslices are using here:

???



2010/11/11 Bruno Rocha <rocha...@gmail.com>

Albert Abril

unread,
Nov 11, 2010, 6:49:53 PM11/11/10
to web...@googlegroups.com
I guess you should comment second line of the janrain auth in db.py


1.
2.
3.
4.
5.
6.
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)

The first line imports the new login method, the second line disables local registration, and the third line asks web2py to use the RPX login method. 

rochacbruno

unread,
Nov 11, 2010, 7:25:37 PM11/11/10
to web...@googlegroups.com
I did it, registration is working, but login form was replaced with janrain, I am trying to get both login forms. 

Otherwise I will create a custom form and a controller for that. 

Tks


Enviado via iPhone

Bruno Rocha

unread,
Nov 11, 2010, 9:50:52 PM11/11/10
to web...@googlegroups.com
PROBLEM SOLVED!

I created 2 instances of Auth()


rpxauth = Auth(globals(),store)
auth = Auth(globals(),store)

and 2 times defined tables

auth.define_tables()
rpxauth.define_tables(migrate=False)

Working now!

Thanks



2010/11/11 rochacbruno <rocha...@gmail.com>
Reply all
Reply to author
Forward
0 new messages