Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Configure from a file and/or environment variables #9

Open
kief opened this issue Jun 27, 2019 · 0 comments
Open

Request: Configure from a file and/or environment variables #9

kief opened this issue Jun 27, 2019 · 0 comments

Comments

@kief
Copy link
Member

kief commented Jun 27, 2019

Howdy!

Two use cases for this request:

  • I want to use oktaauth with more than one app (e.g. multiple AWS accounts)
  • I have an app with multiple users (e.g. an AWS account for infrastructure training), and I want to make it easier for them to use oktaauth.

Currently I need to either type the arguments on the command-line every time I run the tool (yeah, command history helps), or else write a separate wrapper shell script for each app.

I'd prefer an easier way to set the parameters so I can re-use them. Two ways that would be handy:

  • A configuration file, probably directory-based. For example, if I have a file named .oktaauth in my current directory, parent of my current directory, or up the tree to my home directory, then it uses that.
  • If I set environment variables, e.g. OKTA_USERNAME, OKTA_APP_ID, OKTA_SERVER, then oktaauth uses those.

My ideal would be for oktaauth to support both. So I think the conventional precedence would be: 1) command-line arguments 2) environment variable 3) configuration file. I guess it could also take a command-line argument that points to a particular file, and that would probably(?) come between 1 and 2?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant