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

Add auth support via ENV #42

Closed
jimaek opened this issue Apr 8, 2023 · 1 comment · Fixed by #112
Closed

Add auth support via ENV #42

jimaek opened this issue Apr 8, 2023 · 1 comment · Fixed by #112

Comments

@jimaek
Copy link
Member

jimaek commented Apr 8, 2023

To support our upcoming API keys we need a few changes:

  • New parameter -T/--token (open to different options) - in Add auth support via command #108
  • ENV VAR support to allow the user to set it on a shell or script level. GLOBALPING_TOKEN
  • New command limits that will output IP limits if the user is anon and remaining credits if the user is authenticated - in Add limits command #109
@MartinKolarik
Copy link
Member

MartinKolarik commented Jun 24, 2024

@radulucut let's start by adding support for GLOBALPING_TOKEN variable, and I'll specify the rest of the interface to add a little later. The token is sent as Authorization: Bearer YOUR-TOKEN (docs). You can ping me by Slack/mail, and I'll send you some actual tokens for testing.

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

Successfully merging a pull request may close this issue.

3 participants