Skip to content

Add JWT verification to OpenID Connect registration flow#2988

Merged
LXIF merged 7 commits intomainfrom
andri/add-jwt-verification-to-registration
Apr 3, 2025
Merged

Add JWT verification to OpenID Connect registration flow#2988
LXIF merged 7 commits intomainfrom
andri/add-jwt-verification-to-registration

Conversation

@LXIF
Copy link
Copy Markdown
Contributor

@LXIF LXIF commented Apr 2, 2025

Motivation

The ProdSec review had identified that we had missed to validate the OIDC JWT on openid_identity_registration_finish. This PR corrects this oversight.

Changes

Add the check to the endpoint, add integration Test

Tests

Added integration test.


🟡 Some screens were changed

@LXIF LXIF requested review from lmuntaner and sea-snake April 2, 2025 15:38
Comment thread src/internet_identity/src/main.rs
@LXIF LXIF added this pull request to the merge queue Apr 3, 2025
registration::registration_flow_v2::identity_registration_finish(
CreateIdentityData::OpenID(arg),
)
match verify(&arg.jwt, &arg.salt) {
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.

Only nitpick I can find is that I would have written openid::verify instead to make it more clear this is an openid verification and to avoid any future conflict with other methods that might be called verify.

Merged via the queue into main with commit 2dfbd17 Apr 3, 2025
69 checks passed
@LXIF LXIF deleted the andri/add-jwt-verification-to-registration branch April 3, 2025 08:40
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