Remove Authorization Code from functions and put it in a Decorator
Registered by
Ziad Sawalha
In order to continue cleaning up the Keystone code, we need to move the authorization checks for ADMIN and SERVICE ADMIN roles out of all the function calls in logic/service.py and reimplement as a decorator and/or middleware.
Potentially implement a context object to hold call data like other projects do.
Blueprint information
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Implemented decorators to admin and service_admin checks BP: keystone-
Addressed by: https:/
Created skeleton for the context middleware.
(?)