Sugarcrm支持 产品指南 糖开发人员 糖开发人员指南10.3 一体化 网页服务 休息API. 终点 /管理/设置/ auth GET
此版本仅适用于Sugarcloud客户。

/管理/设置/ auth GET

概述

[admin] fetch auth设置。

概括

此端点将返回AUTH设置。 当IDM迁移打开时,此端点仅适用于管理员。

响应如果仅启用了本地Auth提供者

{
  "enabledProviders": [
    "local"
  ],
  "local": {
        "password_requirements": {
            "minimum_length": 6,
            "maximum_length": 0,
            "require_upper": true,
            "require_lower": true,
            "require_number": true,
            "require_special": false,
            "password_regex": "",
            "regex_description": ""
        },
        "password_expiration": {
            "time": 0,
            "attempt": 0
        }
    }
}

响应如果启用了本地和LDAP AUTH提供者

{
    "enabledProviders": [
        "local",
        "ldap"
    ],
    "local": {
        "password_requirements": {
            "minimum_length": 6,
            "maximum_length": 0,
            "require_upper": true,
            "require_lower": true,
            "require_number": true,
            "require_special": false,
            "password_regex": "",
            "regex_description": ""
        },
        "password_expiration": {
            "time": 0,
            "attempt": 0
        }
    },
    "ldap": {
        "user": {
            "mapping": {
                "givenName": "first_name",
                "sn": "last_name",
                "mail": "email1",
                "telephoneNumber": "phone_work",
                "facsimileTelephoneNumber": "phone_fax",
                "mobile": "phone_mobile",
                "street": "address_street",
                "l": "address_city",
                "st": "address_state",
                "postalCode": "address_postalcode",
                "c": "address_country"
            }
        },
        "adapter_config": {
            "host": "127.0.0.1",
            "port": "389",
            "options": {
                "network_timeout": 60,
                "timelimit": 60
            },
            "encryption": "none"
        },
        "adapter_connection_protocol_version": 3,
        "baseDn": "dc=openldap,dc=com",
        "uidKey": "uid",
        "filter": "({uid_key}={username})",
        "dnString": null,
        "entryAttribute": null,
        "autoCreateUser": "1",
        "searchDn": "cn=admin,ou=admins,dc=openldap,dc=com",
        "searchPassword": "admin&password"
    }
}

响应如果启用了本地和SAML AUTH提供者

{
    "enabledProviders": [
        "local",
        "saml"
    ],
    "local": {
        "password_requirements": {
            "minimum_length": 6,
            "maximum_length": 0,
            "require_upper": true,
            "require_lower": true,
            "require_number": true,
            "require_special": false,
            "password_regex": "",
            "regex_description": ""
        },
        "password_expiration": {
            "time": 0,
            "attempt": 0
        }
    },
    "saml": {
        "strict": true,
        "debug": false,
        "sp": {
            "entityId": "logoutFlowWithRedirectBinding",
            "assertionConsumerService": {
                "url": "http://localhost/index.php?module=Users&action=Authenticate",
                "binding": "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
            },
            "singleLogoutService": {
                "url": "http://localhost/index.php?module=Users&action=Logout",
                "binding": "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
            },
            "NameIDFormat": "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress",
            "x509cert": "",
            "privateKey": "",
            "provisionUser": true,
            "sugarCustom": []
        },
        "idp": {
            "entityId": "http://localhost:8080/simplesaml/saml2/idp/metadata.php",
            "singleSignOnService": {
                "url": "http://localhost:8080/simplesaml/saml2/idp/SSOService.php",
                "binding": "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
            },
            "singleLogoutService": {
                "url": "http://localhost:8080/simplesaml/saml2/idp/SingleLogoutService.php",
                "binding": "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
            },
            "x509cert": "-----BEGIN CERTIFICATE-----\n --x509cert-- \n-----END CERTIFICATE-----"
        },
        "security": {
            "authnRequestsSigned": false,
            "logoutRequestSigned": false,
            "logoutResponseSigned": false,
            "signatureAlgorithm": "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256",
            "validateRequestId": false
        }
    }
}

更改日志

版本 改变
v11_2 Added /Administration/settings/auth GET endpoint.

最后修改:2021-01-06 23:28:41