Skip to content

chore: scaffold adapter A (JOSE/OpenID)#300

Merged
EffortlessSteven merged 1 commit into
mainfrom
feat/v0.5.0-adapter-a-jose
Mar 25, 2026
Merged

chore: scaffold adapter A (JOSE/OpenID)#300
EffortlessSteven merged 1 commit into
mainfrom
feat/v0.5.0-adapter-a-jose

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

No description provided.

@coderabbitai

coderabbitai Bot commented Mar 25, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@EffortlessSteven has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 1 minutes and 19 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 23c017ea-763f-4848-be1d-7f2b0a6d3ad8

📥 Commits

Reviewing files that changed from the base of the PR and between c90b9f4 and f747c1a.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (9)
  • Cargo.toml
  • README.md
  • crates/uselesskey-jose-openid/Cargo.toml
  • crates/uselesskey-jose-openid/README.md
  • crates/uselesskey-jose-openid/examples/jwt_jose_openid.rs
  • crates/uselesskey-jose-openid/src/lib.rs
  • crates/uselesskey-jose-openid/tests/integration.rs
  • docs/metadata/workspace-docs.json
  • xtask/src/main.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/v0.5.0-adapter-a-jose

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces the uselesskey-jose-openid crate, a new component designed to streamline the integration of uselesskey's cryptographic key management with JOSE/OpenID systems. By providing utilities to convert uselesskey's key fixtures into jsonwebtoken's native key formats, this change simplifies the process of signing and verifying JSON Web Tokens (JWTs) within OpenID Connect and similar authentication contexts.

Highlights

  • New Adapter Crate: A new adapter crate, uselesskey-jose-openid, has been scaffolded to provide JOSE/OpenID-oriented key conversions.
  • Key Conversion Utilities: This adapter offers conversion helpers to transform uselesskey cryptographic key fixtures into jsonwebtoken's EncodingKey and DecodingKey formats.
  • Algorithm Support: The new adapter supports RSA, ECDSA, Ed25519, and HMAC key types, enabling broad compatibility with various JWT algorithms.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@EffortlessSteven EffortlessSteven force-pushed the feat/v0.5.0-adapter-a-jose branch from 2a344dd to b5f8b05 Compare March 25, 2026 10:00
@gemini-code-assist

Copy link
Copy Markdown

Warning

Gemini encountered an error creating the review. You can try again by commenting /gemini review.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2a344dd17b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +19 to +22
#[test]
fn integration_flow_matches_jose_verification() {
let fx = Factory::random();
let key = fx.ecdsa("tenant-a", EcdsaSpec::es384());

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Gate algorithm-specific tests behind matching features

integration_flow_matches_jose_verification is always compiled and calls EcdsaKeyPair::encoding_key/decoding_key, but those trait impls only exist when the ecdsa feature is enabled. This makes feature-subset test runs fail (e.g. cargo test -p uselesskey-jose-openid --no-default-features --tests errors with E0599), so the crate cannot be tested under its own feature combinations. Add #[cfg(feature = "ecdsa")] here (and similarly gate RSA/ECDSA unit tests in src/lib.rs) so non-ECDSA configurations still compile.

Useful? React with 👍 / 👎.

@EffortlessSteven EffortlessSteven force-pushed the feat/v0.5.0-adapter-a-jose branch from b5f8b05 to f747c1a Compare March 25, 2026 10:20
@EffortlessSteven EffortlessSteven merged commit 5739adf into main Mar 25, 2026
4 checks passed
@EffortlessSteven EffortlessSteven deleted the feat/v0.5.0-adapter-a-jose branch April 3, 2026 04:38
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.

1 participant