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

Send Authorized API Requests #10

Merged
merged 4 commits into from
Jan 10, 2025
Merged

Conversation

bpepple
Copy link
Member

@bpepple bpepple commented Jan 10, 2025

This PR adds authorization to API request using the user's GCD email & password.

Anonymous usage is dropped, since 30 per hour isn't terribly useful, and code-wise it isn't really workable with the current rate-limiting method.

@bpepple bpepple added the enhancement New feature or request label Jan 10, 2025
@bpepple bpepple marked this pull request as draft January 10, 2025 13:52
@bpepple bpepple marked this pull request as ready for review January 10, 2025 14:00
@Buried-In-Code
Copy link
Member

If you're adding in credentials can you update the ratelimit to match. I would probably drop it down to a per minute instead of 2000/day.

@bpepple
Copy link
Member Author

bpepple commented Jan 10, 2025

If you're adding in credentials can you update the ratelimit to match. I would probably drop it down to a per minute instead of 2000/day.

I'm planning to do that in a separate PR, since it makes sense to use a more robust rate limiting solution, that will allow setting a per day and a per hour or minute value, while also tracking it between sessions.

I'm just waiting to hear back the GCD devs on what value they want us to use.

@bpepple bpepple merged commit 2f473a1 into Metron-Project:main Jan 10, 2025
16 checks passed
@bpepple bpepple deleted the user-credentials branch January 10, 2025 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants