Skip to content

Commit 6b725f8

Browse files
BigPandaToolcawl
andauthored
Adding information about SAML API to SAML guide (#66404)
* Adding information about SAML API to SAML guide Adding information about new SAML metadata API to SAML guid Related:##49018 Co-authored-by: lcawl <[email protected]>
1 parent b2aa972 commit 6b725f8

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

x-pack/docs/en/security/authentication/saml-guide.asciidoc

+13-5
Original file line numberDiff line numberDiff line change
@@ -622,11 +622,19 @@ Some Identity Providers support importing a metadata file from the Service
622622
Provider. This will automatically configure many of the integration options
623623
between the IdP and the SP.
624624

625-
The Elastic Stack supports generating such a metadata file using the
626-
`bin/elasticsearch-saml-metadata` command in your {es} directory.
627-
628-
The <<saml-metadata,documentation for the elasticsearch-saml-metadata utility>>
629-
describes how to run it, and the available command line options.
625+
The {stack} supports generating such a metadata file using the
626+
<<saml-metadata,`bin/elasticsearch-saml-metadata` command>> or the
627+
<<security-api-saml-sp-metadata,SAML service provider metadata API>>.
628+
629+
You can generate the SAML metadata by issuing the API request to {es} and store
630+
it as an XML file using tools like `jq`. For example, the following command
631+
generates the metadata for the SAML realm `realm1` and saves it to a
632+
`metadata.xml` file:
633+
634+
["source","console"]
635+
--
636+
curl -u user_name:password -X GET http://localhost:9200/_security/saml/metadata/saml1 -H 'Content-Type: application/json' | jq -r '.[]' > metadata.xml
637+
--
630638

631639
[[saml-role-mapping]]
632640
=== Configuring role mappings

0 commit comments

Comments
 (0)