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

Fix progressive enrolment of passkey for JIT-Provisioned federated user #128

Merged
merged 3 commits into from Jan 26, 2024

Conversation

madurangasiriwardena
Copy link
Member

@Thumimku
Copy link
Contributor

Thumimku commented Jan 26, 2024

Hi,
I tested this fix for following scenarios

Username less authentication

  • Local User
  • Federated User

Username based authentication

  • Local User
  • Federated User

Basic Authentication

Pass Key as first factor

  • Progressive enrollment

Passkey as second factor

  • Progressive enrollment
  • Authenitcation

Email OTP

Pass Key as first factor

  • Progressive enrollment

Passkey as second factor

  • Progressive enrollment
  • Authenitcation

Google Federation

Pass Key as first factor

  • Progressive enrollment

Passkey as second factor

  • Progressive enrollment
  • Authenitcation

Based on the test results, I am approving the PR

Copy link
Contributor

@Thumimku Thumimku left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -1278,4 +1278,12 @@ public boolean isFidoKeyRegistered (String username) throws AuthenticationFailed
throw new AuthenticationFailedException(e.getMessage());
}
}

public boolean isFidoKeyRegistered (AuthenticatedUser authenticatedUser) throws AuthenticationFailedException {
try {
Copy link
Contributor

Choose a reason for hiding this comment

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

can add a line after method signature

}
// Have to set idpName to the context since
// the FederatedAuthenticatorUtil.getLocalUsernameAssociatedWithFederatedUser is expecting it.
context.setProperty("idpName", authenticatedUser.getFederatedIdPName());
Copy link
Contributor

Choose a reason for hiding this comment

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

can have a constant for idpName

@Thumimku Thumimku merged commit e0292e4 into wso2-extensions:master Jan 26, 2024
2 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.

Issue with Progressive Enrollment of Passkey for JIT-Provisioned Federated User
2 participants