The quick answer is that it depends on how much control you want. Most of the finagling you will have to do surrounds RedirectingFormPlugin, who's source you can find here:
http://repoze.org/viewcvs/repoze.who/trunk/repoze/who/plugins/form.py?rev=944&view=auto of which you will probably want to modify the "Identify" method. I created a hook in the template middleware.py so that you can pass your own in. Simply instantiate your own Form plugin class and assign it in your app_cfg.py: of which you will probably want to modify the "Identify" method. I created a hook in the template middleware.py so that you can pass your in your own: base_config.sa_auth.form_plugin = MyNewFangledFormPlugin() I am thinking about providing hooks for other parts of make_who_middleware, so let me know if this fancies you. For ultimate control of the middleware, you are gong to need to copy the middleware code from make_base_app in tg.middleware and customize away. Ok, enough "f" words. cheers. -chris On Jul 8, 11:23 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Hi, > > after getting a first TG2 sample app running with authentication, I found out > how tg.ext.repoze.who hooks the identity-stuff into the app. > > I also read the repoze.who docs about AuthenticatorPlugins, and I need to make > my own. > > Now the question: how to go about this? In tg.ext.repoze.who.middleware I > don't see any hooks that allow me to create my own AuthenticatorPlugin. > > So the question is: > > - do I actually de-activate identity as provided in TG2, and fully create my > own middleware wrapping, inside <myapp>.config.middleware? This would of > course mean to have quite a bit of boiler-plate inside > tg.ext.repoze.who.middleware doubled. > > - is it planned to add some hooks to have most of the boilerplate reused? > > Diez (who loves the WSGI-middleware-concept... coming from J2EE and it's > atrocities called Filters...) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" 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-trunk?hl=en -~----------~----~----~----~------~----~------~--~---
