Skip to content

Commit

Permalink
Update SAML 2.0 Metadata URL Docs
Browse files Browse the repository at this point in the history
Closes gh-9133
  • Loading branch information
jzheaux committed Dec 2, 2020
1 parent 1d96579 commit 28bede8
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,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"));
Expand Down

0 comments on commit 28bede8

Please sign in to comment.