瀏覽代碼

Update SAML 2.0 Metadata URL Docs

Closes gh-9133
Josh Cummings 4 年之前
父節點
當前提交
28bede808a
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      docs/manual/src/docs/asciidoc/_includes/servlet/saml2/saml2-login.adoc

+ 9 - 0
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"));