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

Switch --smart-jwks to --smart-key and accept PEM keys #371

Merged
merged 1 commit into from
Jan 10, 2025
Merged

Conversation

mikix
Copy link
Contributor

@mikix mikix commented Jan 10, 2025

Some servers (notably Epic) support using a private key as an alternative to a JWK Set. So let's add support for that too.

It's a little fussier, but easy enough.

Checklist

  • Consider if documentation (like in docs/) needs to be updated
  • Consider if tests should be added

cumulus_etl/cli_utils.py Outdated Show resolved Hide resolved
# Yes, P-521 is not a typo, it's what the curve is called.
# The curve uses 521 bits, but it's hashed with SHA512, so it's called ES512.
Copy link
Contributor

Choose a reason for hiding this comment

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

case study in 'im glad i don't work in cryptography' right there

cumulus_etl/cli_utils.py Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Jan 10, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
3642 3585 98% 98% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
cumulus_etl/cli_utils.py 100% 🟢
cumulus_etl/errors.py 100% 🟢
cumulus_etl/fhir/fhir_auth.py 100% 🟢
cumulus_etl/fhir/fhir_client.py 100% 🟢
TOTAL 100% 🟢

updated for commit: 57c5de6 by action🐍

@mikix mikix changed the title Support --smart-pem as an alternative to --smart-jwks Switch --smart-jwks to --smart-key and accept PEM keys Jan 10, 2025
@mikix mikix force-pushed the mikix/pem branch 2 times, most recently from f2e74c6 to de656d6 Compare January 10, 2025 17:09
Some servers (notably Epic) support using a private key as an
alternative to a JWK Set. So let's add support for that too.

It's a little fussier, but easy enough.
@mikix mikix merged commit 6d7a9e2 into main Jan 10, 2025
3 checks passed
@mikix mikix deleted the mikix/pem branch January 10, 2025 17:29
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.

2 participants