Skip to content

Commit 28bede8

Browse files
committed
Update SAML 2.0 Metadata URL Docs
Closes gh-9133
1 parent 1d96579 commit 28bede8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/manual/src/docs/asciidoc/_includes/servlet/saml2/saml2-login.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,15 @@ This is often as simple as finding the correct form field to supply the metadata
967967
By default, the metadata endpoint is `+/saml2/service-provider-metadata/{registrationId}+`.
968968
You can change this by calling the `setRequestMatcher` method on the filter:
969969

970+
[source,java]
971+
----
972+
filter.setRequestMatcher(new AntPathRequestMatcher("/saml2/metadata/{registrationId}", "GET"));
973+
----
974+
975+
ensuring that the `registrationId` hint is at the end of the path.
976+
977+
Or, if you have registered a custom relying party registration resolver in the constructor, then you can specify a path without a `registrationId` hint, like so:
978+
970979
[source,java]
971980
----
972981
filter.setRequestMatcher(new AntPathRequestMatcher("/saml2/metadata", "GET"));

0 commit comments

Comments
 (0)