[openstack-dev] [Keystone] Refactoring Authenticate

Joseph Heck heckj at mac.com
Sat Aug 18 07:22:14 UTC 2012


Hey Adam - 

The TokenController and it's related pieces would seem to make a lot more sense in keystone/token/  - I'm guessing that Andy probably never shifted it out in any final cleanup. Moving it into keystone/token/ would make it consistent with the other driver/backend kinds of functionality.

-joe


On Aug 17, 2012, at 2:47 PM, Adam Young <ayoung at redhat.com> wrote:
> I've started to attack the mess that is the authenticate code in service.py
> 
> https://github.com/admiyo/keystone/commit/fdd7ea535c6a6eb99c8652155e6556cf76e87723
> 
> 
> The thing that is clear to me is that most of this code does not belong inside service.py, but rather in some shared location. keystone/token comes to mind.  There is a note from termie that it maybe belongs in middleware as well.
> 
> There are two things I'm trying to work out.  One is that the code needs to be shared across other calls, most specifically the extensions that , as of right now, don't work with PKI tokens (perhaps they don't need to?).   The other is the fact that the logic here is really not specific to the web, but should instead be considered business logic, agnostic to how it is called.
> 
> Any objection  to moving this code into keystone/token, and separating out web specific functionality from business logic?
> 
> 
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




More information about the OpenStack-dev mailing list