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

Added file-based authentication #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

NathanPERIER
Copy link
Contributor

@NathanPERIER NathanPERIER commented Sep 2, 2021

Added an option (-f) that loads the credentials from a json file. The file will be loaded if the arguments provided to the script aren't enough to authenticate the user. The json object can have any of the following four fields : email, password, token or cookie. For instance :

{
    "token": "oCyymtQ8RsSM1eAS"
}

It will make it easier to launch the script and more safe since the credentials won't be logged in the command line history.
Also, if the script can't authenticate the user, it will now prompt for a username and password in the command line.

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

Successfully merging this pull request may close these issues.

1 participant