On Wednesday January 14, 2009 00:03:52 you wrote:
> I had to change the username field in the database to: user_name even if
> the parameter user_name_translation was set to something else but this is
Can you please paste the translation line? The key is "user_name", not
"user_name_translation", by the way.
> Now, the issue I have is that when I am logging in or out, the url is not
> redirected to the referer but to the actual login form. When I am looking
> at the log, the plugin forms was asked twice to be identified. I can
> understand that the referer is set the the form after the second passage
> but is it normal?
I didn't understand this very well. The normal behavior is:
- when you visit a restricted area in your website, you'll get the login
form and after you login, you'll get redirected to the restricted page above.
- if you visit the login page voluntarily, then you'll get redirected to the
home page after login.
- if you visit the logout page, you'll get redirected to the previous page.
Is this the behavior you've noticed?
> Do you think maybe my who.ini was not properly set up?
> Here is the last part:
> plugins =
> plugins =
> plugins =
That seems right, but it may also be useful to know how you're defining
> Thank you,
> 2009/1/13 Gustavo Narea <m...@gustavonarea.net>
> > Hello, Mathieu et al.
> > On Thursday January 8, 2009 00:12:28 you wrote:
> > > I would like to ask you a simple question, feel free to let me know if
> > you
> > > don't have time. I decided to just stick with a basic db
> > > authentication, and I am using an external "who.ini" conf file. The
> > > problem is the it
> > seems
> > > that repoze tries to open its own session with the database. I would
> > prefer
> > > using the one that is already defined inside pylons to avoid
> > > redundancies and many db connections. Do you have a clue how it could
> > > be done? I guess
> > I
> > > wouldn't be able to use the setup file but instead the middleware
> > > configuration (even that way, I am not sure how to do it).
> > Hmmm, repoze.who.plugins.sa doesn't start a new session, instead it
> > always uses the one you specified.
> > In your case, if you have the following line in your who.ini file:
> > dbsession = youapp.whatever:DBSession
> > repoze.who.plugins.sa will use youapp.whatever.DBSession as the
> > SQLAlchemy session, the way you will find here (see
> > SQLAlchemyAuthenticatorPlugin):
> > http://repoze.org/viewcvs/whoplugins/whoalchemy/trunk/repoze/who/plugins/
> > Cheers!
> > --
> > Gustavo Narea <http://gustavonarea.net/>.
> > Get rid of unethical constraints! Get freedomware:
> > http://www.getgnulinux.org/
Gustavo Narea <http://gustavonarea.net/>.
Get rid of unethical constraints! Get freedomware:
Repoze-dev mailing list