Support for authorization middleware