UffizziCloud / uffizzi_cli

The command-line interface for the Uffizzi API
Apache License 2.0
86 stars 46 forks source link

Access tokens management #231

Open moklidia opened 1 year ago

moklidia commented 1 year ago

The uffizzi CLI needs to support login with an access token in addition to OIDC tokens and username/password based login to allow Github/Gitlab users to authenticate without GHA or Gitlab CI/CD.

gadkins commented 1 year ago

Supports https://github.com/UffizziCloud/uffizzi_platform/issues/1092

moklidia commented 1 year ago

Notes for testing:

Authentication

The old login command (username/password) is called via the --email option

uffizzi login --email

uffizzi login will post a browser link. After the browser sign-in there should be a success message in the CLI. After about 5 minutes if the browser login didn't happen - the CLI session should expire. If the user is already signed in, do not ask to sign in again.

Account/project selection

After a successful login if the account/project are not set in the config, the user should see a list of existing accounts. After a selecting an account, he should be able to select a project or create a new one.

NealArw commented 1 year ago

TESTED - OK