List SSO Configurations¶
GET /api/v1/sso/list
Overview¶
Read the SSO providers in the current workspace and the number of associated members.
Prerequisites and Usage Steps¶
Returns an array of non-deleted providers in this workspace, sorted by updateAt in descending order and not paginated. You can filter by saml/oidc. This public route always enables member count statistics, and showMemberCount cannot be passed to override it. memberCount is aggregated from non-deleted account namespaces in active relationships in the current workspace. It does not represent the recent login count, the number of online users, or the total number of people currently allowed by all mappings.
The list intentionally does not return uploadData/config. Do not read clientSecret or the complete XML from the list; use the details instead. updatorInfo is a summary of the currently available identity and may be an account, API Key, or system/AI identity; if missing, it is {}. Its email field cannot be uniformly treated as an email address. 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 to log in.
Request Headers¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential for the workspace. Example: <DF-API-KEY>How to obtain or enter: Obtain an OpenAPI Key with the permission for this operation from API Key Management in the target workspace. |
Query Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| type | string | Optional. If omitted, all non-deleted types are returned; an empty string is not a valid filter enum, so omit it. Null allowed: False Allowed values: ['saml', 'oidc'] Example: oidcHow to obtain or enter: Select saml/oidc according to the provider's actual protocol. |
Request Example¶
curl --get 'https://openapi.guance.com/api/v1/sso/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; [] if empty. |
| content[].id | integer or null | Current record ID; may be null in results constructed before creation is submitted. |
| content[].uuid | string | UUID of the SSO configuration. |
| content[].type | string | saml/oidc. |
| content[].workspaceUUID | string | Workspace it belongs to. |
| content[].idpName | string | Provider display name. |
| content[].remark | string or null | Remarks; may be null for legacy or newly created historical records. |
| content[].role | string | Default role identifier. |
| content[].idpMd5 | string | Provider identity/account namespace digest; not the client secret or a writable ID. |
| content[].tokenHoldTime | integer | Number of seconds the session is retained when there is no 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 include other historical statuses. |
| content[].creator | string | Creating identity. |
| content[].updator | string | Updating identity. |
| content[].createAt | integer | Creation Unix seconds. |
| content[].updateAt | integer | Update Unix seconds; may be -1 if not updated. |
| content[].deleteAt | integer | Deletion Unix seconds; -1 if not deleted. |
| content[].memberCount | integer | Count of account namespaces associated with the current workspace. |
| content[].updatorInfo | object | Summary of the updating identity; may be an account/API Key/system/AI; {} if missing, and fields vary by identity. |
| content[].updatorInfo.uuid | string | Returned conditionally; UUID of the updating identity; may be an empty string for system identities. |
| content[].updatorInfo.name | string | Returned conditionally; display name. |
| content[].updatorInfo.email | string | Returned conditionally; for human identities, may 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 accounts/API Keys/system identities and not equivalent to the provider status. |
| content[].updatorInfo.wsAccountStatus | integer | Returned conditionally; workspace relationship/compatibility status of the identity, interpreted by identity type and 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; may be null or an empty object when not configured; empty objects are not added. The exact position in pagination is subject to 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 missing, or field value violates declared validation conditions | Parameter parsing failed | Check parameter location, field name, type, and value. |
| 500 | ft.InternalServerError | Unhandled exception occurs during database, XML tool initialization, identity summary, or member count statistics formatting | Internal error | Retain the traceId and filter conditions; check database, XML tools, and identity statistics dependencies. This API is read-only; do not treat the failure as the provider not existing. |