Authentication library with permission based access.