Command: user login
The fides user login
command can be used to automatically obtain and save an access token for Fides Server.
Usage
Usage: fides user login [options]
The command will log the user in to Fides. If no options are given, you will be prompted to provide a username and password.
The command-line flags are all optional. The following flags are available:
Credentials Storage
By default, Fides will obtain an access token and save it in a plain text file in a local CLI configuration file called .fides_credentials
. When you run fides user login
successfully for the first time it will print the location of where .fides_credentials
is written to on your computer.
Example: No options provided
This example prompts for the username and password separately:
$ fides user login
Loaded config from: .fides/fides.toml
Username: root_user
Password:
Logged in as user: root_user
Credentials file written to: /Users/fidesuser/.fides_credentials
Example: Specifying username and password as options
This example specifies the -u (username) and -p (password) options:
$ fides user login -u root_user -p Testpassword1!
Loaded config from: .fides/fides.toml
Logged in as user: root_user
Credentials file written to: /Users/fidesuser/.fides_credentials
Example: Credentials File
The following is an example credentials file:
username = "root_user"
password = "Testpassword1!"
user_id = "fidesadmin"
access_token = "eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0..WBo3FxOFfouw4UxYnv9_4Q._GmOyi_d0xhmLUHdOStR43aL09Zzaw3OOq1k3AL_1YJaC4OENuMydbvZ16aLBKUBCVOf4rRUA1NiZY34rXDwIUhU0fkANWknhCOpmgOdG2qhUO3-zSoq_mlv2QjtnWzcBFN9q291f0-QSwg11KNSq9biwpBf81Ki53puygz2FaglpaiOcjWyA33wKu8WRizlCnGAfnFPLqqc1Vf4kSsrKDaLUIAiNF_UxbkBlJcw-2eveV6Sbr7To_ixvYHH_N9nnYH7nrfK_oJEh_GG5SLrTFw4HXMh8DTJ19JylssQ0GCJK2CkldSJP7bzveaI0jkjgTr3hH2TSe5L7dbi1AaZ4VNKKjEraGmlceCrSjoktbwGgCVPo4sf-QAnStUnJAdMTxnoUFoHV8TlXqCqdAPbkr4cTlLWyG4dJV7VI5Dc-sKYAD8DuRAPQiNt2PmIFh6RrTkb8gD1VSGNoFX-nRx0lOqK8fcDOOTn3sW8zfjrtsJboxg9nFasoHTffLjrgXCXxHZusC4RPSM6yE0j3wkxxN_6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