1
1
[role="xpack"]
2
2
[[security-api-saml-sp-metadata]]
3
- === SAML sp metadata API
3
+ === SAML service provider metadata API
4
4
5
- Generate a SAML 2.0 Service Provider Metadata .
5
+ Generate SAML metadata for a SAML 2.0 Service Provider.
6
6
7
7
[[security-api-saml-sp-metadata-request]]
8
8
==== {api-request-title}
9
9
10
- `POST /_security/saml/metadata/<realmname>`
10
+ `GET /_security/saml/metadata/<realmname>`
11
11
12
12
[[security-api-saml-sp-metadata-desc]]
13
13
==== {api-description-title}
@@ -21,12 +21,12 @@ in Elasticsearch.
21
21
==== {api-response-body-title}
22
22
23
23
`metadata`::
24
- (string) An XML string that contains a SAML Service Providers metadata for the realm.
24
+ (string) An XML string that contains a SAML Service Provider's metadata for the realm.
25
25
26
26
[[security-api-saml-sp-metadata-example]]
27
27
==== {api-examples-title}
28
28
29
- The following example generate Service Provider metadata for
29
+ The following example generates Service Provider metadata for
30
30
SAML realm `saml1`:
31
31
32
32
[source,console]
@@ -35,10 +35,9 @@ GET /_security/saml/metadata/saml1
35
35
--------------------------------------------------
36
36
The API returns the following response:
37
37
38
- [source,js ]
38
+ [source,console-result ]
39
39
--------------------------------------------------
40
40
{
41
41
"metadata" : "<?xml version="1.0" encoding="UTF-8"?><md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" entityID="https://kibana.example.com/"><md:SPSSODescriptor AuthnRequestsSigned="false" WantAssertionsSigned="true" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol"><md:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="https://kibana.example.com/logout"/><md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://kibana.example.com/api/security/v1/saml" index="1" isDefault="true"/></md:SPSSODescriptor></md:EntityDescriptor>"
42
42
}
43
43
--------------------------------------------------
44
- // NOTCONSOLE
0 commit comments