|
@@ -24,6 +24,7 @@ import org.springframework.security.config.annotation.web.configurers.WebAuthnCo
|
|
|
* @property rpName the relying party name
|
|
|
* @property rpId the relying party id
|
|
|
* @property the allowed origins
|
|
|
+ * @property disableDefaultRegistrationPage disable default webauthn registration page
|
|
|
* @since 6.4
|
|
|
* @author Rob Winch
|
|
|
* @author Max Batischev
|
|
@@ -33,12 +34,14 @@ class WebAuthnDsl {
|
|
|
var rpName: String? = null
|
|
|
var rpId: String? = null
|
|
|
var allowedOrigins: Set<String>? = null
|
|
|
+ var disableDefaultRegistrationPage: Boolean? = false
|
|
|
|
|
|
internal fun get(): (WebAuthnConfigurer<HttpSecurity>) -> Unit {
|
|
|
return { webAuthn ->
|
|
|
rpName?.also { webAuthn.rpName(rpName) }
|
|
|
rpId?.also { webAuthn.rpId(rpId) }
|
|
|
allowedOrigins?.also { webAuthn.allowedOrigins(allowedOrigins) }
|
|
|
+ disableDefaultRegistrationPage?.also { webAuthn.disableDefaultRegistrationPage(disableDefaultRegistrationPage!!) }
|
|
|
}
|
|
|
}
|
|
|
}
|