Update SAML 2.0 Metadata URL Docs

Closes gh-9133
This commit is contained in:
Josh Cummings 2020-12-02 14:13:02 -07:00
parent 7f482eda7d
commit fe93326087
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443
1 changed files with 9 additions and 0 deletions

View File

@ -1025,6 +1025,15 @@ This is often as simple as finding the correct form field to supply the metadata
By default, the metadata endpoint is `+/saml2/service-provider-metadata/{registrationId}+`.
You can change this by calling the `setRequestMatcher` method on the filter:
[source,java]
----
filter.setRequestMatcher(new AntPathRequestMatcher("/saml2/metadata/{registrationId}", "GET"));
----
ensuring that the `registrationId` hint is at the end of the path.
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:
[source,java]
----
filter.setRequestMatcher(new AntPathRequestMatcher("/saml2/metadata", "GET"));