Skip to content

Commit

Permalink
Add setRequestMatcher to the relevant filters.
Browse files Browse the repository at this point in the history
Signed-off-by: smallbun <[email protected]>
  • Loading branch information
topiam authored and leshalv committed Feb 4, 2025
1 parent 2a85798 commit aedbc70
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ public PublicKeyCredentialRequestOptionsFilter(WebAuthnRelyingPartyOperations rp
}

/**
* Sets the {@link RequestMatcher} used to trigger this filter.
* By default, the {@link RequestMatcher} is {@code POST /webauthn/authenticate/options}.
* Sets the {@link RequestMatcher} used to trigger this filter. By default, the
* {@link RequestMatcher} is {@code POST /webauthn/authenticate/options}.
* @param requestMatcher the {@link RequestMatcher} to use
* @since 6.5
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ public WebAuthnRegistrationFilter(UserCredentialRepository userCredentials,
}

/**
* Sets the {@link RequestMatcher} to trigger this filter's the credential registration operation .
* By default, the {@link RequestMatcher} is {@code POST /webauthn/register}.
* Sets the {@link RequestMatcher} to trigger this filter's the credential
* registration operation . By default, the {@link RequestMatcher} is
* {@code POST /webauthn/register}.
* @param registerCredentialMatcher the {@link RequestMatcher} to use
* @since 6.5
*/
Expand All @@ -117,8 +118,9 @@ public void setRegisterCredentialMatcher(RequestMatcher registerCredentialMatche
}

/**
* Sets the {@link RequestMatcher} to trigger this filter's the credential removal operation .
* By default, the {@link RequestMatcher} is {@code DELETE /webauthn/register/{id}}.
* Sets the {@link RequestMatcher} to trigger this filter's the credential removal
* operation . By default, the {@link RequestMatcher} is {@code DELETE
* /webauthn/register/{id}}.
* @param removeCredentialMatcher the {@link RequestMatcher} to use
* @since 6.5
*/
Expand Down

0 comments on commit aedbc70

Please sign in to comment.