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

Allow configuration of path to keychain file #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Tenzer
Copy link

@Tenzer Tenzer commented Nov 12, 2018

This adds the -keychain parameter to all commands which can be supplied a path
to where the user want 2fa to place the keychain and read it from.

The default value of ~/.2fa can also be overruled by setting a path in the
environment variable named KEYCHAIN, so it doesn't have to be supplied on
every invocation.

Priority order is:

  1. The -keychain argument.
  2. The KEYCHAIN environment variable.
  3. Default value of ~/.2fa.

This adds the `-keychain` parameter to all commands which can be supplied a path
to where the user want 2fa to place the keychain and read it from.

The default value of `~/.2fa` can also be overruled by setting a path in the
environment variable named `KEYCHAIN`, so it doesn't have to be supplied on
every invocation.

Priority order is:

1. The `-keychain` argument.
2. The `KEYCHAIN` environment variable.
3. Default value of `~/.2fa`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants