Skip to content

ACM-484: Add a base64 key/secret encoder - #36

Closed
kasisnu wants to merge 1 commit into
acquia:masterfrom
kasisnu:base64encode
Closed

ACM-484: Add a base64 key/secret encoder#36
kasisnu wants to merge 1 commit into
acquia:masterfrom
kasisnu:base64encode

Conversation

@kasisnu

@kasisnu kasisnu commented Jan 10, 2018

Copy link
Copy Markdown

No description provided.

@itafroma itafroma left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I think I'm okay with this in principle as a convenience class, although the same can be accomplished using the provided KeyLoader:

$loader = new KeyLoader(array_map('base64_encode', $keys));

Base64KeyLoader should have unit tests, though.

Comment thread src/Base64KeyLoader.php
*
* These keys can be later used for signing and verifying requests.
*/
class Base64KeyLoader implements KeyLoaderInterface

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is just a convenience wrapper around the regular KeyLoader, I think I'd prefer this extend it and simply override KeyLoader::load().

@mansinahar

mansinahar commented Jan 12, 2018

Copy link
Copy Markdown
Contributor

Suggested changes and tests addressed as part of #37 @itafroma

@itafroma

Copy link
Copy Markdown
Contributor

Closing in favor of #37

@itafroma itafroma closed this Jan 12, 2018
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.

3 participants