Class PasskeyConfig
java.lang.Object
sk.iway.iwcm.system.spring.passkey.PasskeyConfig
Spring configuration for PassKey/WebAuthn support.
The main beans are provided by @Component annotated classes:
- JpaPublicKeyCredentialUserEntityAdapter - implements PublicKeyCredentialUserEntityRepository
- JpaUserCredentialRepositoryAdapter - implements UserCredentialRepository
- WebjetWebAuthnUserDetailsService - UserDetailsService for WebAuthn authentication
These adapters use JPA/Spring DATA repositories (PasskeyUserEntityRepository,
PasskeyCredentialRepository) to persist WebAuthn data, consistent with the
rest of the project's data access patterns.
Enabled when Constants.getBoolean("password_passKeyEnabled") is true.
Database tables:
- users (extended with webauthn_user_id column to store the WebAuthn user identifier)
- passkey_credentials (passkey_credential_id, credential_id, user_id, webauthn_user_id, ..., rp_id)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.web.webauthn.management.WebAuthnRelyingPartyOperationsdynamicWebAuthnRelyingPartyOperations(org.springframework.security.web.webauthn.management.PublicKeyCredentialUserEntityRepository userEntityRepository, org.springframework.security.web.webauthn.management.UserCredentialRepository userCredentialRepository) Provides a dynamic WebAuthnRelyingPartyOperations that determines rpId from the current HTTP request.
-
Constructor Details
-
PasskeyConfig
public PasskeyConfig()
-
-
Method Details
-
dynamicWebAuthnRelyingPartyOperations
@Bean public org.springframework.security.web.webauthn.management.WebAuthnRelyingPartyOperations dynamicWebAuthnRelyingPartyOperations(org.springframework.security.web.webauthn.management.PublicKeyCredentialUserEntityRepository userEntityRepository, org.springframework.security.web.webauthn.management.UserCredentialRepository userCredentialRepository) Provides a dynamic WebAuthnRelyingPartyOperations that determines rpId from the current HTTP request. This allows passkeys to work across multiple domains automatically.
-