Hi, Sergei.
Sergei said:
> UPD: done. IMetadataProvider is quite simple.
> But still, where do one place that metadata in request?
>
> if request.identity = request.environ.get('repoze.who.identity'),
> then
> request.identity['repoze.who.userid'] gives us the userid.
> Additionally, SQLAlchemy backend will setup a User instance in
> request.identity['user'].
> What shou,d we do with OpenID and LDAP?
I would avoid back-end specific metadata providers, to save you headaches now
that you're using multiple authn backends.
I'm not suggesting you to shut them down, just that you avoid using them.
I'd keep all the relevant users' metadata in the database, frequently
synchronized with the main back-end. This way you'll be able to use the
request.identity['user'] variable regardless of the underlying authn backend.
Cheers.
--
Gustavo Narea <xri://=Gustavo>.
| Tech blog: =Gustavo/(+blog)/tech ~ About me: =Gustavo/about |
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---