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

Return null as default client id instead of "anon" #147

Merged
merged 1 commit into from
Sep 21, 2020

Conversation

veloek
Copy link
Contributor

@veloek veloek commented Sep 21, 2020

Nulls are handled by RateLimitMiddleware.ResolveIdentity when iterating
over client resolvers to find a match, while "anon" was treated as a
valid id and thus causing the iteration to stop and custom resolvers to
never be called.

This should not modify behavior as "anon" is still returned as default
client id if no resolvers have a match.

Fixes #146

Nulls are handled by RateLimitMiddleware.ResolveIdentity when iterating
over client resolvers to find a match, while "anon" was treated as a
valid id and thus causing the iteration to stop and custom resolvers to
never be called.

This should not modify behavior as "anon" is still returned as default
client id if no resolvers have a match.
@cristipufu cristipufu merged commit c5a4f28 into stefanprodan:master Sep 21, 2020
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.

Custom client resolver is never called
2 participants