It's statically configured now. The plugin itself would need to change to
support redirecting to a dynamic URL.
If you weren't up for changing the plugin, you could *try* using the
"non-redirecting" form plugin (replace the call to "form =
..." with what's below). This plugin renders a login form directly without
needing to redirect:
FORMBODY = """
<form method="POST" action="?__do_login=true">
<td><input type="text" name="login"></input></td>
<td><input type="password" name="password"></input></td>
<td><input type="submit" name="submit" value="Log In"/></td>
form = FormPlugin(login_qs='__do_login', rememberer_name='cookie', FORMBODY)
> Yeah, I realized that. I was just wondering, how can I get it to
> automatically figure out the paste prefix? This is something that
> goes off without a hitch in toscawidgets.
> On May 9, 5:15 pm, Chris McDonough <[EMAIL PROTECTED]> wrote:
>> I think what you might be seeing if you're using the configuration of
>> is that the thing that shows the challenge (the form plugin) is configured
>> statically, e.g. (from that file):
>> form = RedirectingFormPlugin('/login', '/login_handler',
>> The first argument there is the "login_form_url". That's the URL that
>> repoze.who will redirect to when a login is required. You probably need to
>> change this to support your environment.
>> - C
>> percious wrote:
>>> So, I almost have my project up and running on the production server.
>>> The thing is, I have a large server with many applications, and they
>>> are all mounted at the highest level of the global tree: ie
>>> All the applications are routed with apache using:
>>> <VirtualHost *>
>>> DocumentRoot /my/tg2app/public
>>> ProxyPass /tg2app/http://127.0.0.1:8080/
>>> ProxyPassReverse /tg2app/http://127.0.0.1:8080/
>>> ok, so this all works fine with wsgi, all I have to do is add
>>> something like:
>>> use = egg:PasteDeploy#prefix
>>> prefix = /tg2app
>>> filter-with = proxy-prefix
>>> to my ini file and it works.
>>> Until I go to login.
>>> For whatever reason, the login script keeps sending me back to the
>>> root... Is there a fix for this?
>>> Also, once I have that working, it appears that I will have a
>>> requirement to authenticate using Apache's authentication (ick) is
>>> there a way to send the Apache Authentication over to repoze.who?
>>> Repoze-dev mailing list
>>> [EMAIL PROTECTED]
>> Repoze-dev mailing list
>> [EMAIL PROTECTED]://lists.repoze.org/listinfo/repoze-dev
> Repoze-dev mailing list
Repoze-dev mailing list