Rules application for authorization libraries