I guess you should comment second line of the janrain auth in db.py

As said at
http://web2py.com/book/default/chapter/08#Integration-with-OpenID,-Facebook

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
<http://web2py.com/book/default/docstring/request>,
    api_key='...',
    domain='...',
    url = "http://localhost:8000/%s/default/user/login"; % request
<http://web2py.com/book/default/docstring/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.



On Thu, Nov 11, 2010 at 10:46 PM, Bruno Rocha <rochacbr...@gmail.com> wrote:

> Somebody knows how can I use RPX and Normal Login form in the same way that
> web2pyslices are using here:
> http://web2pyslices.com/main/default/user/login
>
> ???
>
>
>
> 2010/11/11 Bruno Rocha <rochacbr...@gmail.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.ab...@gmail.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!
>>>
>>>
>>> On Thu, Nov 11, 2010 at 10:02 PM, Bruno Rocha <rochacbr...@gmail.com>wrote:
>>>
>>>> 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 <rochacbr...@gmail.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."
>>>>>
>>>>> http://natalanimal.com.br/init/default/user/login
>>>>>
>>>>> Any idea?
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> http://rochacbruno.com.br
>>>>
>>>
>>>
>>
>>
>> --
>>
>> http://rochacbruno.com.br
>>
>
>
>
> --
>
> http://rochacbruno.com.br
>

Reply via email to