fun login
Login to Fundamentum using web browser
Synopsis
This command allows to authenticate to Fundamentum via the web browser and save that context into its local configuration (precisely contexts.json).
It first asks for context name and fundamentum endpoint, then opens a web browser to the Fundamentum login page, waits for you to authenticate, receives the token, and save all of that in the specified context name.
Re-running login for a context that already exists just refreshes its access token and reuses the stored connection parameters, so you don’t need to re-enter anything or pass any option. Use –override when you actually want to change the context’s connection parameters (Fundamentum IoT and OAuth endpoints); it re-opens the prompts with the current values as defaults.
Instead of letting it ask for context name and fundamentum iot endpoint, you can provide those via environment variables: FUN_CONTEXT_NAME and FUN_CONTEXT_FUNDAMENTUM_IOT_ENDPOINT.
By default, it authenticates against Fundamentum Cloud and uses a pre-configured oauth client, but you can use another one, or connect to a custom Fundamentum deployment, by setting the environment variables FUN_OAUTH_FUNDAMENTUM_ENDPOINT, FUN_OAUTH_CLIENT_ID and FUN_OAUTH_CLIENT_SECRET.
fun login [flags]
Options
-h, --help help for login
--no-check do not check that the endpoint is reachable
--override override existing configuration
Options inherited from parent commands
--config string config directory
SEE ALSO
- fun - A command-line interface to Fundamentum API.
Fundamentum