Add support for internal authorization