osmo login#
usage: osmo login [-h] [--device-endpoint DEVICE_ENDPOINT]
[--browser-endpoint BROWSER_ENDPOINT]
[--callback-port CALLBACK_PORT]
[--method {pkce,code,password,token,dev}]
[--username USERNAME] [--password PASSWORD |
--password-file PASSWORD_FILE] [--token TOKEN |
--token-file TOKEN_FILE]
[url]
Positional Arguments#
- url#
The url of the osmo server to connect to. If not provided, uses the last used url.
Named Arguments#
- --device-endpoint#
The url to use to complete device flow authentication. If not provided, it will be fetched from the service.
- --browser-endpoint#
The authorization endpoint for PKCE login. If not provided, it will be fetched from the service.
- --callback-port#
Local callback port for PKCE login. The default chooses an available ephemeral port.
Default:
0- --method#
Possible choices: pkce, code, password, token, dev
pkce: Log in through the system browser using authorization code flow with PKCE (default). code: Get a device code and url to log in securely through browser. password: Provide username and password directly through CLI. token: Exchange an OSMO access token for a login token.
Default:
'pkce'- --username#
Username if logging in with credentials. This should only be used for service accounts that cannot authenticate via web browser.
- --password#
Password if logging in with credentials.
- --password-file#
File containing password if logging in with credentials.
- --token#
OSMO access token if logging in with a token.
- --token-file#
File containing an OSMO access token.