Set PublicKeyCredentialCreationOptionsRepository by DSL or Bean
Closes gh-16369 Signed-off-by: DingHao <dh.hiekn@gmail.com>
This commit is contained in:
+11
@@ -105,6 +105,17 @@ public class PublicKeyCredentialCreationOptionsFilter extends OncePerRequestFilt
|
||||
this.converter.write(options, MediaType.APPLICATION_JSON, new ServletServerHttpResponse(response));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the {@link PublicKeyCredentialCreationOptionsRepository} to use. The default
|
||||
* is {@link HttpSessionPublicKeyCredentialCreationOptionsRepository}.
|
||||
* @param creationOptionsRepository the
|
||||
* {@link PublicKeyCredentialCreationOptionsRepository} to use. Cannot be null.
|
||||
*/
|
||||
public void setCreationOptionsRepository(PublicKeyCredentialCreationOptionsRepository creationOptionsRepository) {
|
||||
Assert.notNull(creationOptionsRepository, "creationOptionsRepository cannot be null");
|
||||
this.repository = creationOptionsRepository;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the {@link HttpMessageConverter} to read the
|
||||
* {@link WebAuthnRegistrationFilter.WebAuthnRegistrationRequest} and write the
|
||||
|
||||
Reference in New Issue
Block a user