-
Notifications
You must be signed in to change notification settings - Fork 14
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
1.27: Add base64url fallback to base64_decode (#330) #337
Conversation
* add base64url * clean up cout * example of test failing without proposed change * add discrete callbacks for base64url * fallback on standard base64 for base64url decode * keep existing behavior without fallback
Issues linked to changelog: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few comments, happy to discuss if it would be helpful
transformer.transform(headers, &headers, body, callbacks); | ||
EXPECT_NE(std::string::npos, body.toString().find(expect_string)); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it be possible to add a test where we test for equality of the base64-decode callback?
@@ -66,7 +66,9 @@ class TransformerInstance { | |||
nlohmann::json env(const inja::Arguments &args) const; | |||
nlohmann::json cluster_metadata_callback(const inja::Arguments &args) const; | |||
nlohmann::json base64_encode_callback(const inja::Arguments &args) const; | |||
nlohmann::json base64url_encode_callback(const inja::Arguments &args) const; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we also add a test for base64url_encode?
Support for base64url in transformations