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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for ES256 #413

Merged
merged 1 commit into from Feb 11, 2024
Merged

Add test for ES256 #413

merged 1 commit into from Feb 11, 2024

Conversation

maxbeizer
Copy link
Contributor

@maxbeizer maxbeizer commented Feb 11, 2024

馃憢 from a new user.

I was attempting to use joken to sign EC private keys and I can't seem to get it to work. I didn't see a test for ES256 so I figured I'd add it. I've included a burned private key in the tests (I have deleted it from the source).

Anyway, I'm back to debugging but thanks for this library. I assume my problem is PEBKAC but if you know of any reason why the following appears to always return 401 in the request for me, I'm all 馃憘 馃檱

Joken.Signer.create(
  "ES256",
  %{"pem" => "--------BEGIN EC PRIVATE KEY-----\nM..."
)

cc @victorolinasc

@maxbeizer maxbeizer marked this pull request as ready for review February 11, 2024 17:51
@victorolinasc victorolinasc merged commit b56c45b into joken-elixir:main Feb 11, 2024
6 checks passed
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.

None yet

2 participants