Get SSO Configuration¶
GET /api/v1/sso/{sso_uuid}/get
Overview¶
Read a single SSO configuration, email allowlist, and login/callback URLs.
Before You Call and Usage Steps¶
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. OIDC secret decryption is used 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 while retaining the old secret, you can return the Base64 asterisk mask from this get.
SAML returns the complete uploaded XML and SP URLs; OIDC returns login and callback URLs. Register the IdP with the URLs returned by the current site; do not construct URLs yourself. The config field may contain extra historical data. When modifying, submit only the complete configuration supported by the write contract of this page; do not blindly use the entire get response as the body. The email allowlist is returned under the key emails; write requests use emailDomains. Field mapping serves a different purpose from role mapping rules.
Route Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| sso_uuid | string | Y | Provider UUID; not the mapping UUID, IdP digest, or client ID. Example: sso_exampleHow to obtain or enter: Obtain the current Workspace configuration from content[].uuid in the SSO list. |
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 enter: Obtain an OpenAPI Key with this operation permission 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 secret in browser URL |
| getTokenSet | $state, $code, $client_id, $client_secret, $redirect_uri, $scope, $grant_type; if other keys match callback parameter names, their values can be used; 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 validates only 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¶
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 constructed result before create submission. |
| content.uuid | string | sso_ configuration UUID. |
| 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 in legacy or newly created 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 | Idle session retention in seconds. |
| 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 seconds. |
| content.updateAt | integer | Update Unix seconds; may be -1 if never updated. |
| content.deleteAt | integer | Deletion Unix seconds; -1 if not deleted. |
| content.uploadData | string | Raw SAML IdP XML; usually an empty string for OIDC. |
| content.config | object | Saved configuration; on get, OIDC clientSecret is converted to a Base64 all-asterisk mask, not plaintext or stored ciphertext. |
| content.config.modeType | string | Optional easy/expert; default easy. This field mainly preserves the edit mode and does not automatically validate arbitrary expert configuration 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 use the errors on this page. If omitted, the auth/token/userinfo three endpoints must be explicitly specified; you cannot specify only modeType=expert. |
| content.config.sslVerify | boolean | TLS verification switch for discovery requests. Defaults to true at save stage; the runtime SDK defaults to true for HTTPS and false for HTTP. It is not treated as an overall switch for each endpoint's verify. |
| content.config.clientId | string | OIDC required non-empty string and must not contain leading or trailing whitespace; obtained from IdP client registration, not a 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, return it as-is; do not decode it and use it as the real secret. SAML usually does not have this field. |
| content.config.grantType | string | Optional authorization_code/code; if omitted, the runtime default is authorization_code. Not the client_credentials or password grant. |
| content.config.scope | array | Optional string array; the runtime SDK defaults to only [openid], not openid/profile/email as in the old description. Ensure the IdP actually provides claims required by the account, such as email; an empty array generates an empty scope, and the client should configure a reasonable explicit set. |
| 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; can be omitted so URLs are filled from the discovery document. |
| content.config.getTokenSet | json | Code-for-token request object; endpoints can be omitted to use the discovery document. |
| content.config.verifyTokenSet | json | id_token signature verification JWK object; this is not immediately initiating token authentication to save the configuration. |
| content.config.getUserInfoSet | json | User info source/request object; defaults to origin, not id_token as in the old description. |
| content.config.claimMapping | json | Mapping from account fields to actual IdP attribute names, not role mapping rules. OIDC save does not strictly validate each item, so actual callback testing is required; for SAML, a non-empty mapping must also provide non-empty username/email, and mobile is an optional string. An empty object is compatible with the old default. |
| content.config.authSet.url | string | Optional explicit HTTP(S) URL. If not provided, the authorization_endpoint from the discovery document is used; if provided, it overrides the runtime endpoint. When there is no discovery document, auth/token/userinfo are all required, and ensure JWK is available for the signature verification source separately. |
| content.config.authSet.paramMapping | json | Optional non-standard request parameter mapping. When non-empty, replaces the corresponding default parameter set, and required items must be fully retained; keys are IdP parameter names, and 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 range varies by stage, as shown in the table below; unknown strings are retained as constants and are not automatically taken from arbitrary internal context. |
| content.config.getTokenSet.url | string | Optional explicit HTTP(S) URL. If not provided, the token_endpoint from the discovery document is used; if provided, it overrides the runtime endpoint. When there is no discovery document, auth/token/userinfo are all required, and ensure JWK is available for the signature verification source separately. |
| content.config.getTokenSet.verify | boolean | Optional; for this endpoint, HTTPS defaults to true and HTTP to false; configure separately, not replaced uniformly by sslVerify. |
| content.config.getTokenSet.paramMapping | json | Optional non-standard request parameter mapping. When non-empty, replaces the corresponding default parameter set, and required items must be fully retained; keys are IdP parameter names, and 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 range varies by stage, as shown in the table below; unknown strings are retained as constants and are not automatically taken from arbitrary internal context. |
| content.config.verifyTokenSet.url | string | Optional explicit HTTP(S) URL. If not provided, the jwks_uri from the discovery document is used; if provided, it overrides the runtime endpoint. When there is no discovery document, auth/token/userinfo are all required, and ensure JWK is available for the signature verification source separately. |
| content.config.verifyTokenSet.verify | boolean | Optional; for this endpoint, HTTPS defaults to true and HTTP to false; configure separately, not replaced uniformly by sslVerify. |
| content.config.getUserInfoSet.url | string | Optional explicit HTTP(S) URL. If not provided, the userinfo_endpoint from the discovery document is used; if provided, it overrides the runtime endpoint. When there is no discovery document, auth/token/userinfo are all required, and ensure JWK is available for the signature verification source separately. |
| content.config.getUserInfoSet.verify | boolean | Optional; for this endpoint, HTTPS defaults to true and HTTP to false; configure separately, not replaced uniformly by sslVerify. |
| content.config.getUserInfoSet.paramMapping | json | Optional non-standard request parameter mapping. When non-empty, replaces the corresponding default parameter set, and required items must be fully retained; keys are IdP parameter names, and 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 range varies by stage, as shown in the table below; unknown strings are retained as constants and are not automatically taken from arbitrary internal context. |
| content.config.getTokenSet.method | string | Optional get/post; default post, and runtime supports only these two. Save does not enforce this enum; other values will cause errors in subsequent logins. |
| content.config.getTokenSet.authMethod | string | Optional basic/client_secret_basic (default Basic header), client_secret_post (default form includes ID and secret), none (default only client_id, no automatic secret). With custom paramMapping, parameters are generated according to the complete mapping; the Basic header still follows the selected authentication method. |
| content.config.getUserInfoSet.method | string | Default get. The current SDK's non-get branch still sends GET but puts parameters in the Body, which is not a real POST; an IdP that requires POST cannot be considered supported merely because saving succeeds. It is recommended to use a verified GET endpoint. |
| content.config.getUserInfoSet.authMethod | string | Default 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 value as equally effective. |
| content.config.getUserInfoSet.source | string | origin calls userinfo (default); id_token validates and reads id_token; merge uses id_token first and then userinfo overwrites same-name keys. Save does not enforce the enum; other values may ultimately yield no user info. |
| content.config.getUserInfoSet.responseInfoPath | string | Optional dot path to the user object in the response; only extracted from origin results. An empty string takes the entire response, which is different from a claimMapping attribute name. |
| content.config.verifyTokenSet.keys | array | Optional array of IdP public JWKs; if non-empty, used directly for signature verification; otherwise runtime GET verifyTokenSet.url and take 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; subject to the IdP JWK. |
| content.config.verifyTokenSet.keys[].kid | string | Identifier used to select the public key. |
| content.config.verifyTokenSet.keys[].use | string | Key usage. |
| content.config.verifyTokenSet.keys[].alg | string | Signature verification algorithm identifier. |
| content.config.verifyTokenSet.keys[].n | string | RSA modulus Base64url. |
| content.config.verifyTokenSet.keys[].e | string | RSA public exponent 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 Base64 DER array of public certificate chain. |
| content.config.verifyTokenSet.keys[].x5c[] | string | A single public certificate, without 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 default preferred_username; SAML default username. When SAML explicitly has a non-empty claimMapping, this is a required non-empty string. |
| content.config.claimMapping.email | string | Default email; actual login must obtain a valid email. Required when SAML explicitly has a non-empty claimMapping; OIDC save does not validate the value/source, but the callback still requires an email. |
| content.config.claimMapping.name | string | OIDC optional display name attribute, default name; SAML currently reads name in a fixed way, and this mapping key does not change its display name extraction. |
| content.config.claimMapping.mobile | string | OIDC default phone_number; SAML default mobile. An explicit empty string is not extracted. If there is no number, it is not added; existing mobile numbers and area codes are retained, and it is added only when the original account has no number and the IdP number is valid. |
| content.config.authSet.verify | boolean | Compatible legacy value can be saved, but the current OIDC SDK does not consume this key, so it cannot be used to control requests/TLS; use the corresponding fields actually read on this page. |
| content.config.verifyTokenSet.method | string | Compatible legacy value can be saved, but the current OIDC SDK does not consume this key, so it cannot be used to control requests/TLS; use the corresponding fields actually read on this page. |
| content.config.verifyTokenSet.authMethod | string | Compatible legacy value can be saved, but the current OIDC SDK does not consume this key, so it cannot be used to control requests/TLS; use the corresponding fields actually read on this page. |
| content.emails | array<string> | Current non-deleted email/domain allowlist values; allowlist entities are not returned. |
| content.emails[] | string | A single full email address or domain identifier. |
| content.loginURL | string | Login entry 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; must be registered in the IdP allowed callback list. |
| content.metadataURL | string | SAML SP metadata URL only. |
| content.entiryID | string | SAML SP entity ID only; retain the actual protocol spelling entiryID; do not change to entityID. |
| content.assertionURL | string | SAML ACS/assertion callback URL only; register according to the actual returned value. |
| content.declaration | object or null | Workspace public declaration attached to a non-empty business object; may be null or an empty object when not configured; an empty object is not added. The exact position for pagination is subject to this page structure. |
{
"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 Common Error Definitions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Handling |
|---|---|---|---|---|
| 406 | ft.NotFoundSAML | UUID does not belong to a non-deleted SSO configuration in the current Workspace | sso configuration not found | Re-fetch the sso_ UUID from the SSO list; do not use fdmp_ mapping or idpMd5. |
| 500 | ft.InternalServerError | Uncaught exception occurs during configuration/database/secret decryption, XML tool, or related data formatting | Internal error | Retain traceId and check the current configuration and service dependencies; reads do not perform configuration updates, so do not treat their failure as the provider not existing. |