-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tres Seaver wrote:
> Chris Grindstaff wrote:
> 
>> I'm a new user of repoze.who trying to use the "hybrid" API mentioned in the
>> CHANGES.txt.
> 
>> My user has been authenticated so I want to tell repoze.who to remember the
>> user.
> 
>> I tried:
>> request.environ['repoze.who.userid'] = form.data['login']
>> get_api(request.environ).remember()
> 
>> but that doesn't work. Perhaps I've misunderstood IAPI, any suggestions?
> 
> You might have found a bug.
> 
> - Is there a traceback you can show us?
> 
> - Are you using a more-or-less "stock" who.ini to configure the
>   middleware?
> 
> - Are you sure the middleware is in your WSGI pipeline?

Or maybe the docs aren't clear enough:  if you call 'remember', you have
to inject the headers returned by 'remember' into your response.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tsea...@palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkuayNwACgkQ+gerLs4ltQ5q5gCePtnLIIIT/vugSHduGC6Delso
bbgAn2L5ZunEJxUrwHy10CWfuevJqrvy
=wU/t
-----END PGP SIGNATURE-----
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to