private function getDecodedAuth($auth) { $decoded = base64_decode($auth); $auth_parts = explode(':', $decoded); return [self::authUser => $auth_parts[0], self::authPass => $auth_parts[1]]; }