Get SSO Configuration¶
GET /api/v1/sso/saml_get/{sso_uuid}
Overview¶
Read a single SSO configuration, the email allowlist, and login/callback URLs.
Before Calling and Usage Steps¶
This is a legacy URL compatibility endpoint; the current source code still actually registers it. The historical “removed on 2026-05-31” note does not mean requests are currently prohibited. For new integrations, prefer Get SSO Configuration. The legacy path uses the same controller/request fields/response; the saml prefix does not exclude OIDC.
Only non-deleted configurations in the current Workspace are read; disabled configurations can also be viewed. This request does not connect to the IdP to verify login. The OIDC secret is decrypted only to generate asterisks of the same length, which are then Base64-encoded and returned; this value cannot be used to authenticate to the IdP. Do not confuse the get mask with the stored ciphertext returned by create/modify: when modifying a non-empty config and retaining the old secret, you can send back the Base64 asterisk mask from this get request.
SAML returns the complete uploaded XML and SP URLs, while OIDC returns login and callback URLs. Register the URL returned by the current site with the IdP; do not construct URLs yourself. The config field may contain historical extra data. For modifications, submit only the complete configuration supported by the write contract described on this page; do not blindly use the entire get response as the body. The email allowlist is returned under the key emails, while write requests use emailDomains. Field mapping and Role Mapping Rules serve different purposes.
Route Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| sso_uuid | string | Y | Provider UUID, not the mapping UUID, IdP digest, or client ID. Example: sso_exampleHow to obtain or specify: Obtain the current Workspace configuration from content[].uuid in the SSO List. |
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 specify: Obtain an OpenAPI Key with permission for this operation from API Key Management in the target Workspace. |
Additional Parameter Notes¶
OIDC custom parameter mappings are used by stage:
| Stage | Supported Variable Values |
|---|---|
| authSet | $state, $client_id, $client_secret, $redirect_uri, $scope, $response_type (code), $grant_type; do not put the secret in the browser URL |
| getTokenSet | $state, $code, $client_id, $client_secret, $redirect_uri, $scope, $grant_type; other keys can take their values if they match callback parameter names; otherwise, they are treated as fixed text |
| getUserInfoSet | $client_id, $client_secret, $redirect_uri, $scope, $access_token |
A non-empty mapping object replaces the default request parameters and does not automatically fill in missing required items such as redirect_uri/code/scope. Saving only validates some URL/client fields and does not execute the complete authentication flow; verify the actual callback and final Workspace access with a dedicated test identity.
Request Example¶
curl --get 'https://openapi.guance.com/api/v1/sso/saml_get/sso_example' \
-H 'DF-API-KEY: <DF-API-KEY>'
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content.id | integer or null | Current record number; may be null for a result constructed before a create submission. |
| 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 | Remark; 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 a client secret or writable ID. |
| content.tokenHoldTime | integer | Number of seconds to keep a session alive 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 | Creator identity. |
| content.updator | string | Updater identity. |
| content.createAt | integer | Creation Unix timestamp in seconds. |
| content.updateAt | integer | Update Unix timestamp in seconds; may be -1 if never updated. |
| content.deleteAt | integer | Deletion Unix timestamp in seconds; -1 if not deleted. |
| content.uploadData | string | Raw SAML IdP XML; usually an empty string for OIDC. |
| content.config | object | Stored configuration; for OIDC, clientSecret is converted to a Base64 all-asterisk mask on get, not plaintext or stored ciphertext. |
| content.config.modeType | string | Optional easy/expert, default easy; this field mainly records the edit mode and does not automatically validate arbitrary expert configurations as executable. |
| content.config.wellKnowURL | string | Optional HTTP(S) discovery URL. When provided, the save stage performs a real GET and parses JSON (not offline validation); request failures/SSL/HTTP errors go through the errors on this page. If omitted, the auth/token/userinfo three endpoints must be specified explicitly; you cannot just set modeType=expert. |
| content.config.sslVerify | boolean | TLS verification switch for discovery requests. Defaults to true at the save stage; the runtime SDK defaults to true for HTTPS and false for HTTP. This is not a master switch for each endpoint's verify setting. |
| content.config.clientId | string | Required non-empty string for OIDC and must not contain leading or trailing whitespace; obtained from the IdP client registration, not the Studio API Key. |
| content.config.clientSecret | string | OIDC Base64 asterisk mask representing asterisks of the original secret length; to retain the old secret when modifying, send it back as-is. It cannot be decoded and used as the actual secret. SAML usually has no such field. |
| content.config.grantType | string | Optional authorization_code/code; if omitted, the runtime defaults to authorization_code. This is not client_credentials or password authorization. |
| content.config.scope | array | Optional string array; the runtime SDK defaults to only [openid], not openid/profile/email as stated in older documentation. Ensure that the IdP actually provides claims required by the account, such as email; an empty array generates an empty scope, so clients should configure it explicitly and appropriately. |
| content.config.scope[] | string | A single scope allowed by the IdP; not a permission point in this Workspace. |
| content.config.authSet | json | Authorization redirect parameter object; may be omitted so the address is filled from the discovery document. |
| content.config.getTokenSet | json | Code-for-token request object; the endpoint may be omitted and taken from the discovery document. |
| content.config.verifyTokenSet | json | JWK object for id_token signature verification; this does not immediately initiate token authentication to save the configuration. |
| content.config.getUserInfoSet | json | User info source/request object; defaults to origin, not id_token as stated in older documentation. |
| content.config.claimMapping | json | Mapping from account fields to actual IdP attribute names; not a role mapping rule. OIDC saving does not perform strict item-by-item validation, so the callback must be tested in practice. For a non-empty SAML mapping, non-empty username/email must both be provided, and mobile is an optional string. An empty object is compatible with legacy defaults. |
| content.config.authSet.url | string | Optional explicit HTTP(S) URL. If not provided, authorization_endpoint is taken from the discovery document; if provided, it overrides the runtime endpoint. When there is no discovery document, auth/token/userinfo are all required, and the signature verification source must separately ensure that JWK is available. |
| content.config.authSet.paramMapping | json | Optional non-standard request parameter mapping. When non-empty, it replaces the corresponding default parameter set and must retain all required items in full. Keys are IdP parameter names; values can be $ variables allowed on this page or fixed strings. Do not map clientSecret into the authorization redirect URL. |
| content.config.authSet.paramMapping. |
string | Dynamic IdP parameter value. The allowed variable set varies by stage; see the table below. Unknown strings are retained as constants and are not automatically resolved from arbitrary internal context. |
| content.config.getTokenSet.url | string | Optional explicit HTTP(S) URL. If not provided, token_endpoint is taken from the discovery document; if provided, it overrides the runtime endpoint. When there is no discovery document, auth/token/userinfo are all required, and the signature verification source must separately ensure that JWK is available. |
| content.config.getTokenSet.verify | boolean | Optional; for this endpoint, HTTPS defaults to true and HTTP defaults to false. Configure each endpoint separately; sslVerify does not uniformly replace this. |
| content.config.getTokenSet.paramMapping | json | Optional non-standard request parameter mapping. When non-empty, it replaces the corresponding default parameter set and must retain all required items in full. Keys are IdP parameter names; values can be $ variables allowed on this page or fixed strings. Do not map clientSecret into the authorization redirect URL. |
| content.config.getTokenSet.paramMapping. |
string | Dynamic IdP parameter value. The allowed variable set varies by stage; see the table below. Unknown strings are retained as constants and are not automatically resolved from arbitrary internal context. |
| content.config.verifyTokenSet.url | string | Optional explicit HTTP(S) URL. If not provided, jwks_uri is taken from the discovery document; if provided, it overrides the runtime endpoint. When there is no discovery document, auth/token/userinfo are all required, and the signature verification source must separately ensure that JWK is available. |
| content.config.verifyTokenSet.verify | boolean | Optional; for this endpoint, HTTPS defaults to true and HTTP defaults to false. Configure each endpoint separately; sslVerify does not uniformly replace this. |
| content.config.getUserInfoSet.url | string | Optional explicit HTTP(S) URL. If not provided, userinfo_endpoint is taken from the discovery document; if provided, it overrides the runtime endpoint. When there is no discovery document, auth/token/userinfo are all required, and the signature verification source must separately ensure that JWK is available. |
| content.config.getUserInfoSet.verify | boolean | Optional; for this endpoint, HTTPS defaults to true and HTTP defaults to false. Configure each endpoint separately; sslVerify does not uniformly replace this. |
| content.config.getUserInfoSet.paramMapping | json | Optional non-standard request parameter mapping. When non-empty, it replaces the corresponding default parameter set and must retain all required items in full. Keys are IdP parameter names; values can be $ variables allowed on this page or fixed strings. Do not map clientSecret into the authorization redirect URL. |
| content.config.getUserInfoSet.paramMapping. |
string | Dynamic IdP parameter value. The allowed variable set varies by stage; see the table below. Unknown strings are retained as constants and are not automatically resolved from arbitrary internal context. |
| content.config.getTokenSet.method | string | Optional get/post; defaults to post, and the runtime supports only these two. Saving does not enforce this enumeration; other values will cause errors during subsequent login. |
| content.config.getTokenSet.authMethod | string | Optional basic/client_secret_basic (Basic header by default), client_secret_post (form containing ID and secret by default), or none (only client_id by default, without automatically including the secret). When a custom paramMapping is present, parameters are generated from the complete mapping; the Basic header still follows the selected authentication method. |
| content.config.getUserInfoSet.method | string | Defaults to get. In the current SDK, the non-get branch still sends GET but places parameters in the body; this is not a true POST. Do not assume that an IdP requiring POST is supported just because saving succeeds; use a verified GET endpoint. |
| content.config.getUserInfoSet.authMethod | string | Defaults to the bearer header; client_secret_basic uses the Basic header; none places access_token in parameters by default. Do not treat the basic alias or any other arbitrary value as equally effective. |
| content.config.getUserInfoSet.source | string | origin calls userinfo (default); id_token verifies and reads id_token; merge uses id_token first and then userinfo, with userinfo overriding keys of the same name. Saving does not enforce the enumeration; other values may ultimately result in no user information. |
| content.config.getUserInfoSet.responseInfoPath | string | Optional dot path to the user object in the response; extraction applies only to origin results. An empty string takes the entire response, unlike the attribute names in claimMapping. |
| content.config.verifyTokenSet.keys | array | Optional array of IdP public JWKs; when non-empty, it is used directly for signature verification; otherwise, the runtime performs a GET on verifyTokenSet.url and retrieves keys. These are not private keys; do not treat example placeholder material as real signature verification configuration. |
| content.config.verifyTokenSet.keys[] | json | A single public JWK; retain the complete structure according to the kty/alg/kid and public key parameters published by the IdP. |
| content.config.verifyTokenSet.keys[].kty | string | Public key type, such as RSA/EC; follow the IdP JWK. |
| content.config.verifyTokenSet.keys[].kid | string | Identifier used to select the public key. |
| content.config.verifyTokenSet.keys[].use | string | Key use. |
| content.config.verifyTokenSet.keys[].alg | string | Signature verification algorithm identifier. |
| content.config.verifyTokenSet.keys[].n | string | RSA modulus in Base64url. |
| content.config.verifyTokenSet.keys[].e | string | RSA public exponent in Base64url. |
| content.config.verifyTokenSet.keys[].crv | string | EC curve, only for the corresponding type. |
| content.config.verifyTokenSet.keys[].x | string | EC public x coordinate. |
| content.config.verifyTokenSet.keys[].y | string | EC public y coordinate. |
| content.config.verifyTokenSet.keys[].x5c | array | Optional array of public certificate chains in Base64 DER. |
| content.config.verifyTokenSet.keys[].x5c[] | string | A single public certificate, without a private key. |
| content.config.verifyTokenSet.keys[]. |
JSON | IdP JWK extensions are retained according to the library protocol; do not add private key material such as d/p/q. |
| content.config.claimMapping.username | string | OIDC defaults to preferred_username; SAML defaults to username. For SAML with an explicit non-empty claimMapping, a non-empty string is required. |
| content.config.claimMapping.email | string | Defaults to email; actual login must obtain a valid email address. Required for SAML with an explicit non-empty claimMapping; OIDC saving does not verify the value/source, but the callback still requires an email address. |
| content.config.claimMapping.name | string | Optional display name attribute for OIDC, default name; SAML currently reads name in a fixed manner, and this mapping key does not change its display name extraction. |
| content.config.claimMapping.mobile | string | OIDC defaults to phone_number; SAML defaults to mobile, and an explicit empty string does not extract it. If there is no number, it is not added; existing mobile numbers and area codes are retained, and a number is added only when the original account has no number and the IdP number is valid. |
| content.config.authSet.verify | boolean | Legacy-compatible and can be saved, but the current OIDC SDK does not consume this key, so it cannot control requests/TLS; use the corresponding field that is actually read on this page. |
| content.config.verifyTokenSet.method | string | Legacy-compatible and can be saved, but the current OIDC SDK does not consume this key, so it cannot control requests/TLS; use the corresponding field that is actually read on this page. |
| content.config.verifyTokenSet.authMethod | string | Legacy-compatible and can be saved, but the current OIDC SDK does not consume this key, so it cannot control requests/TLS; use the corresponding field that is actually read on this page. |
| content.emails | array<string> | Current non-deleted email/domain allowlist values; the allowlist entity is not returned. |
| content.emails[] | string | A single complete email address or domain identifier. |
| content.loginURL | string | Login entry point for this provider, returned by the deployment site; not the current OpenAPI path accessed with DF-API-KEY. |
| content.callbackURL | string | OIDC callback URL only; it must be registered in the IdP's allowed callback list. |
| content.metadataURL | string | SAML SP metadata URL only. |
| content.entiryID | string | SAML SP entity ID only; retain the protocol's actual spelling entiryID and do not change it to entityID. |
| content.assertionURL | string | SAML ACS/assertion callback URL only; register it as actually returned. |
| content.declaration | object or null | Workspace public declaration attached to a non-empty business object; when not configured, it may be null or an empty object; empty objects are not added. The exact position in pagination is subject to the structure on this page. |
{
"code": 200,
"content": {
"id": 1,
"uuid": "sso_example",
"type": "oidc",
"workspaceUUID": "wksp_example",
"idpName": "ExampleIdP",
"remark": "Enterprise login",
"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,
"uploadData": "",
"config": {
"modeType": "expert",
"clientId": "client_example",
"clientSecret": "KioqKioqKioq",
"scope": [
"openid",
"profile",
"email"
],
"grantType": "authorization_code",
"authSet": {
"url": "https://idp.example.com/authorize"
},
"getTokenSet": {
"url": "https://idp.example.com/token",
"method": "post",
"authMethod": "client_secret_basic"
},
"verifyTokenSet": {
"url": "https://idp.example.com/jwks"
},
"getUserInfoSet": {
"url": "https://idp.example.com/userinfo",
"method": "get",
"authMethod": "bearer",
"source": "origin"
},
"claimMapping": {
"username": "preferred_username",
"email": "email",
"mobile": "phone_number"
}
},
"emails": [
"example.com"
],
"loginURL": "https://sso.example.com/oidc/login/sso_example",
"callbackURL": "https://sso.example.com/oidc/callback/sso_example",
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Responses¶
For authentication, rate limiting, and common request errors, see Public Error Definitions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Handling |
|---|---|---|---|---|
| 406 | ft.NotFoundSAML | The UUID does not belong to a non-deleted SSO configuration in the current Workspace | SSO configuration not found | Retrieve the sso_ UUID again from the SSO List; do not use the fdmp_ mapping or idpMd5. |
| 500 | ft.InternalServerError | An uncaught exception occurs during configuration/database/secret decryption, XML tooling, or related data formatting | Internal error | Retain the traceId and check the current configuration and service dependencies; a read does not perform configuration updates, and do not treat its failure as the provider not existing. |