From 28bede808a8475db36d2a699a18f67852ddf61a8 Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Wed, 2 Dec 2020 14:13:02 -0700 Subject: [PATCH] Update SAML 2.0 Metadata URL Docs Closes gh-9133 --- .../asciidoc/_includes/servlet/saml2/saml2-login.adoc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/manual/src/docs/asciidoc/_includes/servlet/saml2/saml2-login.adoc b/docs/manual/src/docs/asciidoc/_includes/servlet/saml2/saml2-login.adoc index 7881ae0ca8..b7a000099b 100644 --- a/docs/manual/src/docs/asciidoc/_includes/servlet/saml2/saml2-login.adoc +++ b/docs/manual/src/docs/asciidoc/_includes/servlet/saml2/saml2-login.adoc @@ -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"));