Fix Base64Url encoding and harden authentication input validation#919
Merged
Fix Base64Url encoding and harden authentication input validation#919
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #919 +/- ##
==========================================
+ Coverage 79.18% 79.35% +0.17%
==========================================
Files 458 458
Lines 5932 5957 +25
Branches 278 282 +4
==========================================
+ Hits 4697 4727 +30
+ Misses 1140 1137 -3
+ Partials 95 93 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
1704492 to
611915d
Compare
nandan-bhat
approved these changes
Feb 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
This pull request includes three distinct improvements to the Auth0.NET SDK:
1. Improved Validation for ForwardedForIp
ForwardedForIpheader in authentication API token requestsArgumentExceptionwith descriptive message if an invalid IPv4 or IPv6 address is provided2. Refactored ParseQuotaLimit to Handle Edge Cases
ParseQuotaLimit()method inExtensions.csto gracefully handle malformed headers instead of throwing exceptions3. Fixed Base64 URL Encoding
Base64UrlEncode()method inUtils.csto properly implement RFC 4648 Base64 URL encoding.References
Testing
Checklist
I have read the Auth0 general contribution guidelines
I have read the Auth0 Code of Conduct
All existing and new tests complete without errors