Flex component that makes requests (REST) for authentication