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 envs to drive the auth #1

Open
gedw99 opened this issue May 9, 2023 · 1 comment
Open

allow envs to drive the auth #1

gedw99 opened this issue May 9, 2023 · 1 comment

Comments

@gedw99
Copy link

gedw99 commented May 9, 2023

suggest that this be changed so that the env variables can drive it.
then people don't have to put them credentials on disk.

main.go:

os.Setenv("SPACE_TRACK_USERNAME", "username")
	os.Setenv("SPACE_TRACK_PASSWORD", "password")
	os.Setenv("N2YO_API_KEY", "api-key")
	cli.SatIntel()

then people can set it this way.


# https://www.space-track.org/auth/login
export SPACE_TRACK_USERNAME=xxx
export SPACE_TRACK_PASSWORD=yyy

# https://www.n2yo.com/
export "N2YO_API_KEY=zzz

@christopherwoodall
Copy link
Contributor

christopherwoodall commented May 14, 2023

The linked PR avoids writing creds to disk. When not present, the user is prompted to enter them; they only exist in memory during the life of the process.

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

2 participants