break out mapping to auth class into map_auth() function