Skip to content

Commit fe93326

Browse files
committed
Update SAML 2.0 Metadata URL Docs
Closes gh-9133
1 parent 7f482ed commit fe93326

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
@@ -1025,6 +1025,15 @@ This is often as simple as finding the correct form field to supply the metadata
10251025
By default, the metadata endpoint is `+/saml2/service-provider-metadata/{registrationId}+`.
10261026
You can change this by calling the `setRequestMatcher` method on the filter:
10271027

1028+
[source,java]
1029+
----
1030+
filter.setRequestMatcher(new AntPathRequestMatcher("/saml2/metadata/{registrationId}", "GET"));
1031+
----
1032+
1033+
ensuring that the `registrationId` hint is at the end of the path.
1034+
1035+
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:
1036+
10281037
[source,java]
10291038
----
10301039
filter.setRequestMatcher(new AntPathRequestMatcher("/saml2/metadata", "GET"));

0 commit comments

Comments
 (0)