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

Moving Base64UrlEncode/Base64UrlDecode to separate entity #82

Merged
merged 10 commits into from
Apr 7, 2017

Conversation

abatishchev
Copy link
Member

@abatishchev abatishchev commented Apr 3, 2017

  • Adding IBase64UrlEncoder implemented by JwtBase64UrlEncoder. Calling it from JsonWebToken.Base64UrlEncode/Base64UrlDecode.
  • Updating tests

@abatishchev abatishchev added this to the 2.0 milestone Apr 3, 2017
@abatishchev abatishchev self-assigned this Apr 3, 2017
@abatishchev abatishchev requested a review from nbarbettini April 3, 2017 22:14
@abatishchev
Copy link
Member Author

I'll wait CI/CD to run tests automatically first

package.cmd Outdated
if not exist package\lib\net35 mkdir package\lib\net35

msbuild src\JWT.sln -p:Configuration=Release
copy src\JWT\bin\Release\JWT.dll package\lib\net35
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like some extra changes got moved into this PR?

{
public interface IBase64UrlEncoder
{
string UrlEncode(byte[] input);
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems a bit redundant to have Url twice, perhaps the method could just be Encode and Decode?

Copy link
Member Author

@abatishchev abatishchev Apr 7, 2017

Choose a reason for hiding this comment

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

Yeah, was thinking about this too. Dropped the prefix.

@abatishchev abatishchev merged commit 448f085 into master Apr 7, 2017
@abatishchev abatishchev deleted the url-base64-encode branch April 7, 2017 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants