tiled.client.base.BaseClient.login#

BaseClient.login(*, overwrite_auth=False)[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

Parameters:
overwrite_auth: bool, optional

If True, any existing authentication will be overwritten. If False, an error will be raised if authentication is already configured.