PUT /a/config/oauth2connectors/{id}

[Enterprise Only] Add/Create a new oauth2 client

Body Parameters

Name Description Type Required
configbitbucket #/definitions/authOAuth2ConnectorBitbucketConfig
configgithub #/definitions/authOAuth2ConnectorGithubConfig
configgitlab #/definitions/authOAuth2ConnectorGitlabConfig
configlinkedin #/definitions/authOAuth2ConnectorLinkedinConfig
configmicrosoft #/definitions/authOAuth2ConnectorMicrosoftConfig
configoidc #/definitions/authOAuth2ConnectorOIDCConfig
configpydio #/definitions/authOAuth2ConnectorPydioConfig
configsaml #/definitions/authOAuth2ConnectorSAMLConfig
id string
name string
type string

Body Example

{
  "configbitbucket": {
    "clientID": "string",
    "clientSecret": "string",
    "redirectURI": "string",
    "teams": [
      "string"
    ]
  },
  "configgithub": {
    "clientID": "string",
    "clientSecret": "string",
    "hostName": "string",
    "loadAllGroups": true,
    "orgs": [
      {
        "name": "string",
        "teams": [
          "string"
        ]
      }
    ],
    "redirectURI": "string",
    "rootCA": "string",
    "teamNameField": "string",
    "useLoginAsID": true
  },
  "configgitlab": {
    "baseURL": "string",
    "clientID": "string",
    "clientSecret": "string",
    "groups": [
      "string"
    ],
    "redirectURI": "string",
    "userLoginAsID": true
  },
  "configlinkedin": {
    "clientID": "string",
    "clientSecret": "string",
    "redirectURI": "string"
  },
  "configmicrosoft": {
    "clientID": "string",
    "clientSecret": "string",
    "groupNameFormat": "string",
    "groups": [
      "string"
    ],
    "onlySecurityGroups": true,
    "redirectURI": "string",
    "tenant": "string",
    "useGroupsAsWhitelist": true
  },
  "configoidc": {
    "basicAuthUnsupported": true,
    "clientID": "string",
    "clientSecret": "string",
    "getUserInfo": true,
    "hostedDomains": [
      "string"
    ],
    "insecureSkipEmailVerified": true,
    "issuer": "string",
    "redirectURI": "string",
    "scopes": [
      "string"
    ],
    "userIDKey": "string",
    "userNameKey": "string"
  },
  "configpydio": {
    "pydioconnectors": [
      {
        "id": 10,
        "name": "string",
        "type": "string"
      }
    ]
  },
  "configsaml": {
    "ca": "string",
    "caData": "string",
    "emailAttr": "string",
    "entityIssuer": "string",
    "groupsAttr": "string",
    "groupsDelim": "string",
    "insecureSkipSignatureValidation": true,
    "nameIDPolicyFormat": "string",
    "redirectURI": "string",
    "ssoIssuer": "string",
    "ssoURL": "string",
    "usernameAttr": "string"
  },
  "id": "string",
  "name": "string",
  "type": "string"
}

Response Example (200)

Response Type /definitions/entOAuth2ConnectorResponse

{
  "Success": true
}
Auto generated by Pydio Cells Enterprise Distribution v2.0.0 on 5-Nov-2019
Back to top