barracuda-cloudgen-access / access-cli

Allows to access all CloudGen Access Enterprise Console APIs from the command line.
Apache License 2.0
10 stars 4 forks source link

Auth: add profiles support #4

Closed gbl08ma closed 4 years ago

gbl08ma commented 5 years ago

Users should be able to easily switch between endpoints and user credentials using a profiles system. Example

Current workaround before the feature is implemented: keep multiple auth.yaml files and manually switch the currently active file

(Do we really need profiles or just a convenient way to specify a different auth.yaml? The latter is already implemented, --auth flag)

oNaiPs commented 5 years ago

@gbl08ma I don't think this will be needed in the short term. However, does the auth also have the endpoint information? Or you always have to accompany with the config file

gbl08ma commented 5 years ago

The auth file contains the endpoint information, yes.

gbl08ma commented 4 years ago

This idea has been shelved, in favor of the much simpler and understandable solution of specifying different auth files, either through the --auth flag every time fyde-cli is run, or by using the FYDE_CLI_AUTH_FILE to specify the auth file path as implemented in af382f7cf17bf7760e648cd20f6b8d72f63e3f69.