def setup_dotcloud_account(cli):
client = RESTClient(endpoint=cli.client.endpoint)<EOL>client.authenticator = NullAuth()<EOL>urlmap = client.get('<STR_LIT>').item<EOL>username = cli.prompt('<STR_LIT>')<EOL>password = cli.prompt('<STR_LIT>', noecho=True)<EOL>credential = {'<STR_LIT>': urlmap.get('<STR_LIT>'),<EOL>'<STR_LIT:key>': CLIENT_KEY, '<STR_LIT>': CLIENT_SECRET}<EOL>try:<EOL><INDENT>token = cli.authorize_client(urlmap.get('<STR_LIT>'), credential, username, password)<EOL><DEDENT>except Exception as e:<EOL><INDENT>cli.die('<STR_LIT>')<EOL><DEDENT>token['<STR_LIT:url>'] = credential['<STR_LIT>']<EOL>config = GlobalConfig()<EOL>config.data = {'<STR_LIT>': token}<EOL>config.save()<EOL>cli.global_config = GlobalConfig()  <EOL>cli.setup_auth()<EOL>cli.get_keys()<EOL>
Gets user/pass for dotcloud, performs auth, and stores keys