Added support for the auth system in API2.