tiled.client.context.Context.login

Context.login(username=None, provider=None, prompt_for_reauthentication=<UNSET>)[source]

Depending on the server’s authentication method, this will prompt for username/password:

>>> c.login()
Username: USERNAME
Password: <input is hidden>

or prompt you to open a link in a web browser to login with a third party:

>>> c.login()
You have ... minutes visit this URL

https://

and enter the code: XXXX-XXXX