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 Rate Limit provider #1

Merged
merged 6 commits into from
Nov 16, 2016
Merged

Add Rate Limit provider #1

merged 6 commits into from
Nov 16, 2016

Conversation

lbalmaceda
Copy link
Contributor

Default Rate Limit applied is 10 tokens per minute. The limit can be disabled by calling builder.rateLimited(false).

new JwkProviderBuilder()
   .rateLimited(false);
   .build();

If you need to customize the Rate Limit values, use

long size = 10;
long rate = 30;
TimeUnit unit = TimeUnit.SECONDS;

new JwkProviderBuilder()
   .rateLimited(size, rate, unit);
   .build();

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.

2 participants