Skip to content

Commit bc55bb6

Browse files
committed
DOC-5858 Updated RS SSO REST API reference and examples
1 parent 7a90e7d commit bc55bb6

File tree

3 files changed

+14
-15
lines changed

3 files changed

+14
-15
lines changed

content/operate/rs/references/rest-api/objects/sso.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ An API object that represents single sign-on (SSO) configuration in the cluster.
1717
| control_plane | boolean (default: false) | If `true`, enables single sign-on (SSO) for the control plane. |
1818
| enforce_control_plane | boolean (default: false) | If `true`, enforce SSO login for the control plane for non-admin users. If `false`, all users can still login using their local username and password if SSO is down. |
1919
| protocol | "saml2" | SSO protocol to use. |
20-
| issuer | complex object | Issuer related configuration.<br>Contains the following fields:<br>**id**: Unique ID of the issuer side (example: "urn:sso:example:idp")<br>**login_url**: SSO login URL (example: "https://idp.example.com/sso/saml")<br>**logout_url**: SSO logout URL (example: "https://idp.example.com/sso/slo") |
20+
| issuer | complex object | Issuer related configuration.<br>Contains the following fields:<br>**id**: Unique ID of the issuer side (example: "urn:sso:example:idp")<br>**login_url**: SSO login URL (example: "https://idp.example.com/sso/saml")<br>**logout_url**: SSO logout URL (example: "https://idp.example.com/sso/slo")<br />**metadata**: Base64 encoded IdP metadata (read-only) |
2121
| service | complex object | Service related configuration.<br />For SAML2 service configuration:<br />{{<code>}}{
22+
"address": "string",
2223
"saml2": {
2324
"entity_id": "string",
2425
"acs_url": "string",
2526
"slo_url": "string"
2627
}
27-
}{{</code>}}<br>**acs_url**: Assertion Consumer Service URL (read-only)<br>**slo_url**: Single Logout URL (read-only)<br>**entity_id**: Service entity ID (read-only) |
28+
}{{</code>}}<br>**address**: External service address used for SSO. By default, the cluster name with the Cluster Manager port is used.<br />**acs_url**: Assertion Consumer Service URL (read-only)<br>**slo_url**: Single Logout URL (read-only)<br>**entity_id**: Service entity ID (read-only) |

content/operate/rs/references/rest-api/requests/cluster/sso.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ weight: $weight
1717
| [GET](#get-cluster-sso) | `/v1/cluster/sso` | Get SSO configuration |
1818
| [PUT](#put-cluster-sso) | `/v1/cluster/sso` | Set or update SSO configuration |
1919
| [DELETE](#delete-cluster-sso) | `/v1/cluster/sso` | Clear SSO configuration |
20-
| [GET](#get-cluster-sso-saml-metadata) | `/v1/cluster/sso/saml/metadata` | Get SAML service provider metadata |
21-
| [POST](#post-cluster-sso-saml-metadata) | `/v1/cluster/sso/saml/metadata` | Upload SAML identity provider metadata |
20+
| [GET](#get-cluster-sso-saml-metadata) | `/v1/cluster/sso/saml/metadata/sp` | Get SAML service provider metadata |
21+
| [POST](#post-cluster-sso-saml-metadata) | `/v1/cluster/sso/saml/metadata/idp` | Upload SAML identity provider metadata |
2222

2323
## Get SSO configuration {#get-cluster-sso}
2424

@@ -59,9 +59,11 @@ Returns an [SSO object]({{< relref "/operate/rs/references/rest-api/objects/sso"
5959
"issuer": {
6060
"id": "urn:sso:example:idp",
6161
"login_url": "https://idp.example.com/sso/saml",
62-
"logout_url": "https://idp.example.com/sso/slo"
62+
"logout_url": "https://idp.example.com/sso/slo",
63+
"metadata": "<base64 encoded metadata>"
6364
},
6465
"service": {
66+
"address": "https://hostname:port",
6567
"saml2": {
6668
"entity_id": "https://cnm.cluster.fqdn/sp",
6769
"acs_url": "https://cnm.cluster.fqdn/v1/cluster/sso/saml/acs",
@@ -108,11 +110,7 @@ Set or update the cluster single sign-on configuration.
108110
"logout_url": "https://idp.example.com/sso/slo"
109111
},
110112
"service": {
111-
"saml2": {
112-
"entity_id": "https://cnm.cluster.fqdn/sp",
113-
"acs_url": "https://cnm.cluster.fqdn/v1/cluster/sso/saml/acs",
114-
"slo_url": "https://cnm.cluster.fqdn/v1/cluster/sso/saml/slo"
115-
}
113+
"address": "https://hostname:port"
116114
}
117115
}
118116
```
@@ -195,7 +193,7 @@ Possible `error_code` values:
195193

196194
## Get SAML service provider metadata {#get-cluster-sso-saml-metadata}
197195

198-
GET /v1/cluster/sso/saml/metadata
196+
GET /v1/cluster/sso/saml/metadata/sp
199197

200198
Generates and returns the SAML2 service provider metadata XML.
201199

@@ -209,7 +207,7 @@ Generates and returns the SAML2 service provider metadata XML.
209207

210208
#### Example HTTP request
211209

212-
GET /v1/cluster/sso/saml/metadata
210+
GET /v1/cluster/sso/saml/metadata/sp
213211

214212
#### Request headers
215213

@@ -251,7 +249,7 @@ Possible `error_code` values:
251249

252250
## Upload SAML identity provider metadata {#post-cluster-sso-saml-metadata}
253251

254-
POST /v1/cluster/sso/saml/metadata
252+
POST /v1/cluster/sso/saml/metadata/idp
255253

256254
Uploads and validates the SAML2 identity provider metadata XML.
257255

@@ -265,7 +263,7 @@ Uploads and validates the SAML2 identity provider metadata XML.
265263

266264
#### Example HTTP request
267265

268-
POST /v1/cluster/sso/saml/metadata
266+
POST /v1/cluster/sso/saml/metadata/idp
269267

270268
#### Example JSON body
271269

content/operate/rs/security/access-control/saml-sso.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ To download the service provider's metadata using the Cluster Manager UI:
131131
To download the service provider's metadata using the REST API, use a [get SAML service provider metadata]({{<relref "/operate/rs/references/rest-api/requests/cluster/sso#get-cluster-sso-saml-metadata">}}) request.
132132

133133
```sh
134-
GET https://<host>:<port>/v1/cluster/sso/saml/metadata
134+
GET https://<host>:<port>/v1/cluster/sso/saml/metadata/sp
135135
```
136136

137137
{{< /multitabs >}}

0 commit comments

Comments
 (0)