List SSO Configurations¶
GET /api/v1/sso/saml_list
Overview¶
Read the SSO providers in the current workspace and the number of associated members.
Before Calling and Usage Steps¶
This is a legacy-address compatibility endpoint and is still actually registered in the current source code; the historical "retired on 2026-05-31" comment does not mean requests are currently prohibited. For new integrations, prefer List SSO Configurations. The legacy path uses the same controller/request fields/response; OIDC is not excluded because of the saml prefix.
Returns an array of non-deleted providers in the current workspace, sorted by updateAt in descending order, without pagination. You can filter by saml/oidc; this public route always enables member count statistics, and showMemberCount cannot be passed to override this. memberCount is aggregated by non-deleted account namespaces in active relationships in the current workspace, and does not represent the number of recent logins, online users, or all users currently allowed by the mapping.
The list intentionally does not return uploadData/config; do not read clientSecret or the complete XML from the list; use the details endpoint. updatorInfo is a summary of the currently available identity and may be an account, API Key, or system/AI identity; when missing, it is {}. Its email cannot be uniformly treated as an email address. The configuration status and isOpenSAMLMapping are two separate switches. Disabled configurations can still be read by list/get; being readable does not mean they can be used for login.
Request Headers¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential for the workspace. Example: <DF-API-KEY>How to obtain or fill in: Obtain an OpenAPI Key with the required operation permission from API Key Management in the target workspace. |
Query Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| type | string | Optional. If omitted, all non-deleted types are returned; an empty string is not a valid filter enum, so omitting is recommended. Allowed null: False Allowed values: ['saml', 'oidc'] Example: oidcHow to obtain or fill in: Select saml/oidc according to the provider's actual protocol. |
Request Example¶
curl --get 'https://openapi.guance.com/api/v1/sso/saml_list' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-urlencode type=oidc
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content | array<object> | Provider array; empty []. |
| content[].id | integer or null | Current record number; can be null in a constructed result before a create request is submitted. |
| content[].uuid | string | sso_ configuration UUID. |
| content[].type | string | saml/oidc. |
| content[].workspaceUUID | string | Workspace to which it belongs. |
| content[].idpName | string | Provider display name. |
| content[].remark | string or null | Remarks; may be null for old/new historical records. |
| content[].role | string | Default role identifier. |
| content[].idpMd5 | string | Provider identity/account namespace digest; not a client secret or writable ID. |
| content[].tokenHoldTime | integer | Number of seconds to maintain a session without activity. |
| content[].tokenMaxValidDuration | integer | Maximum login session duration in seconds. |
| content[].isOpenSAMLMapping | integer or boolean | Role mapping switch 1/0; not the same as the SSO configuration status. |
| content[].status | integer | 0 enabled, 2 disabled; non-deleted reads may contain other historical statuses. |
| content[].creator | string | Creating identity. |
| content[].updator | string | Updating identity. |
| content[].createAt | integer | Creation Unix timestamp in seconds. |
| content[].updateAt | integer | Update Unix timestamp in seconds; -1 if not updated. |
| content[].deleteAt | integer | Deletion Unix timestamp in seconds; -1 if not deleted. |
| content[].memberCount | integer | Count of associated account namespaces in the current workspace. |
| content[].updatorInfo | object | Updating identity summary; may be an account/Key/system/AI; when missing, {}; fields vary by identity. |
| content[].updatorInfo.uuid | string | Returned conditionally; updating identity UUID; can be an empty string for system identities. |
| content[].updatorInfo.name | string | Returned conditionally; display name. |
| content[].updatorInfo.email | string | Returned conditionally; for human identities, can be an email address; for API Key identities, it is the Key UUID; for system/AI identities, it is a display label and cannot be used as a valid email address. |
| content[].updatorInfo.username | string | Returned conditionally; login name. |
| content[].updatorInfo.status | integer | Returned conditionally; identity status, interpreted separately for account/API Key/system identities; not the same as the provider status. |
| content[].updatorInfo.wsAccountStatus | integer | Returned conditionally; the identity's workspace relationship/compatibility status, interpreted by identity type; not guaranteed to be a regular member relationship. |
| content[].updatorInfo.iconUrl | string | Returned conditionally; avatar. |
| content[].updatorInfo.mobile | string | Returned conditionally; mobile number. |
| content[].updatorInfo.countryCode | string | Returned conditionally; mobile number country code. |
| content[].updatorInfo.acntWsNickname | string | Returned conditionally; workspace nickname. |
| content[].declaration | object or null | Workspace common declaration attached to non-empty business objects; can be null or an empty object when not configured; an empty object is not added. The exact pagination position is based on the structure of this page. |
{
"code": 200,
"content": [
{
"id": 1,
"uuid": "sso_example",
"type": "oidc",
"workspaceUUID": "wksp_example",
"idpName": "ExampleIdP",
"remark": "企业登录",
"role": "general",
"idpMd5": "IDP-IDENTITY-HASH",
"tokenHoldTime": 604800,
"tokenMaxValidDuration": 2592000,
"isOpenSAMLMapping": 0,
"status": 0,
"creator": "wsak_example",
"updator": "wsak_example",
"createAt": 1785427200,
"updateAt": 1785427200,
"deleteAt": -1,
"memberCount": 2,
"updatorInfo": {},
"declaration": {}
}
],
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Responses¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Handling |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | Request field is missing, or the field value violates the declared validation conditions | Parameter parsing failed | Check the parameter location, field name, type, and value. |
| 500 | ft.InternalServerError | An unhandled exception occurs in the database, XML tool initialization, identity summary, or member count statistics formatting | Internal error | Retain the traceId and filter conditions, and check the database, XML tool, and identity statistics dependencies; this API is read-only, so do not treat a failure as the provider not existing. |