Create a new set of OIDC provider credentials for SSO
Create a new set of OIDC provider credentials for your organization to use with SSO. Includes a client ID, client secret, and the name of the provider. The client ID and client secret should be generated separately using the third-party identity provider you wish to integrate with (such as Google). Not all identity providers are currently supported.
Header Parameters
- SlashID-OrgID string required
The organization ID
Example: af5fbd30-7ce7-4548-8b30-4cd59cb2aba1 - SlashID-Required-Consistency string
Possible values: [
local_region
,all_regions
]Default value:
local_region
The consistency level required for this request. If the consistency level is not achieved within the timeout, the request will fail with a 408 Request Timeout error. 408 Request Timeout error indicates that request was not handled within the timeout, but it may still be handled after request timeout. Allowed values: *
local_region
: Wait while the request executes in the local region. *all_regions
: Wait while the request executes across all regions. You can learn more about our replication model on our Cross-region Replication Model page. - SlashID-Required-Consistency-Timeout integer
Possible values:
>= 1
and<= 120
Default value:
30
The maximum amount of seconds to wait for the requested consistency level to be achieved. If the consistency level is not achieved within this time, the request will fail with a 408 Request Timeout error. 408 Request Timeout error indicates that request was not handled within the timeout, but it may still be handled after request timeout. You can learn more about our replication model on our Cross-region Replication Model page.
- application/json
Request Body
- client_id string required
- client_secret string required
- provider string required
Possible values: [
google
,github
,bitbucket
,gitlab
,facebook
,line
,azuread
,okta
,apple
] - label string
- external_cred string
External credential ID
- external_cred_id string
External credential ID
- enable_in_slashid_oidc_authz_server boolean
Indicates whether these credentials can be used for SSO authentication during an OIDC flow in which SlashID acts as the Authorization Server.
options object
- 201
- 400
OK
- application/json
- Schema
- Example (from schema)
Schema
meta object
errors object[]
{
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total_count": 0
}
},
"errors": [
{
"httpcode": 0,
"message": "string"
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
meta object
errors object[]
{
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total_count": 0
}
},
"errors": [
{
"httpcode": 0,
"message": "string"
}
]
}
POST /organizations/sso/oidc/provider-credentials
https://api.slashid.com
Authorization
type: apiKeyname: SlashID-API-Keyin: header
Request
Request
curl -L -X POST 'https://api.slashid.com/organizations/sso/oidc/provider-credentials' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>' \
--data-raw '{
"client_id": "string",
"client_secret": "string",
"provider": "google",
"label": "string",
"external_cred": "string",
"external_cred_id": "string",
"enable_in_slashid_oidc_authz_server": true,
"options": {
"google": {
"authorize_scopes": [
"string"
]
},
"github": {
"authorize_scopes": [
"string"
]
},
"bitbucket": {
"authorize_scopes": [
"string"
]
},
"gitlab": {
"authorize_scopes": [
"string"
]
},
"facebook": {
"authorize_scopes": [
"string"
]
},
"line": {
"authorize_scopes": [
"string"
]
},
"azuread": {
"authorize_scopes": [
"string"
],
"tenant": "common"
},
"okta": {
"authorize_scopes": [
"string"
],
"organization_url": "string"
},
"apple": {
"authorize_scopes": [
"string"
],
"private_key": "string",
"team_id": "string",
"key_id": "string",
"secret_lifetime": "string"
}
}
}'
curl -L -X POST 'https://api.slashid.com/organizations/sso/oidc/provider-credentials' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>' \
--data-raw '{
"client_id": "string",
"client_secret": "string",
"provider": "google",
"label": "string",
"external_cred": "string",
"external_cred_id": "string",
"enable_in_slashid_oidc_authz_server": true,
"options": {
"google": {
"authorize_scopes": [
"string"
]
},
"github": {
"authorize_scopes": [
"string"
]
},
"bitbucket": {
"authorize_scopes": [
"string"
]
},
"gitlab": {
"authorize_scopes": [
"string"
]
},
"facebook": {
"authorize_scopes": [
"string"
]
},
"line": {
"authorize_scopes": [
"string"
]
},
"azuread": {
"authorize_scopes": [
"string"
],
"tenant": "common"
},
"okta": {
"authorize_scopes": [
"string"
],
"organization_url": "string"
},
"apple": {
"authorize_scopes": [
"string"
],
"private_key": "string",
"team_id": "string",
"key_id": "string",
"secret_lifetime": "string"
}
}
}'
curl -L -X POST 'https://api.slashid.com/organizations/sso/oidc/provider-credentials' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>' \
--data-raw '{
"client_id": "string",
"client_secret": "string",
"provider": "google",
"label": "string",
"external_cred": "string",
"external_cred_id": "string",
"enable_in_slashid_oidc_authz_server": true,
"options": {
"google": {
"authorize_scopes": [
"string"
]
},
"github": {
"authorize_scopes": [
"string"
]
},
"bitbucket": {
"authorize_scopes": [
"string"
]
},
"gitlab": {
"authorize_scopes": [
"string"
]
},
"facebook": {
"authorize_scopes": [
"string"
]
},
"line": {
"authorize_scopes": [
"string"
]
},
"azuread": {
"authorize_scopes": [
"string"
],
"tenant": "common"
},
"okta": {
"authorize_scopes": [
"string"
],
"organization_url": "string"
},
"apple": {
"authorize_scopes": [
"string"
],
"private_key": "string",
"team_id": "string",
"key_id": "string",
"secret_lifetime": "string"
}
}
}'
curl -L -X POST 'https://api.slashid.com/organizations/sso/oidc/provider-credentials' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>' \
--data-raw '{
"client_id": "string",
"client_secret": "string",
"provider": "google",
"label": "string",
"external_cred": "string",
"external_cred_id": "string",
"enable_in_slashid_oidc_authz_server": true,
"options": {
"google": {
"authorize_scopes": [
"string"
]
},
"github": {
"authorize_scopes": [
"string"
]
},
"bitbucket": {
"authorize_scopes": [
"string"
]
},
"gitlab": {
"authorize_scopes": [
"string"
]
},
"facebook": {
"authorize_scopes": [
"string"
]
},
"line": {
"authorize_scopes": [
"string"
]
},
"azuread": {
"authorize_scopes": [
"string"
],
"tenant": "common"
},
"okta": {
"authorize_scopes": [
"string"
],
"organization_url": "string"
},
"apple": {
"authorize_scopes": [
"string"
],
"private_key": "string",
"team_id": "string",
"key_id": "string",
"secret_lifetime": "string"
}
}
}'
curl -L -X POST 'https://api.slashid.com/organizations/sso/oidc/provider-credentials' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>' \
--data-raw '{
"client_id": "string",
"client_secret": "string",
"provider": "google",
"label": "string",
"external_cred": "string",
"external_cred_id": "string",
"enable_in_slashid_oidc_authz_server": true,
"options": {
"google": {
"authorize_scopes": [
"string"
]
},
"github": {
"authorize_scopes": [
"string"
]
},
"bitbucket": {
"authorize_scopes": [
"string"
]
},
"gitlab": {
"authorize_scopes": [
"string"
]
},
"facebook": {
"authorize_scopes": [
"string"
]
},
"line": {
"authorize_scopes": [
"string"
]
},
"azuread": {
"authorize_scopes": [
"string"
],
"tenant": "common"
},
"okta": {
"authorize_scopes": [
"string"
],
"organization_url": "string"
},
"apple": {
"authorize_scopes": [
"string"
],
"private_key": "string",
"team_id": "string",
"key_id": "string",
"secret_lifetime": "string"
}
}
}'
curl -L -X POST 'https://api.slashid.com/organizations/sso/oidc/provider-credentials' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>' \
--data-raw '{
"client_id": "string",
"client_secret": "string",
"provider": "google",
"label": "string",
"external_cred": "string",
"external_cred_id": "string",
"enable_in_slashid_oidc_authz_server": true,
"options": {
"google": {
"authorize_scopes": [
"string"
]
},
"github": {
"authorize_scopes": [
"string"
]
},
"bitbucket": {
"authorize_scopes": [
"string"
]
},
"gitlab": {
"authorize_scopes": [
"string"
]
},
"facebook": {
"authorize_scopes": [
"string"
]
},
"line": {
"authorize_scopes": [
"string"
]
},
"azuread": {
"authorize_scopes": [
"string"
],
"tenant": "common"
},
"okta": {
"authorize_scopes": [
"string"
],
"organization_url": "string"
},
"apple": {
"authorize_scopes": [
"string"
],
"private_key": "string",
"team_id": "string",
"key_id": "string",
"secret_lifetime": "string"
}
}
}'
curl -L -X POST 'https://api.slashid.com/organizations/sso/oidc/provider-credentials' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>' \
--data-raw '{
"client_id": "string",
"client_secret": "string",
"provider": "google",
"label": "string",
"external_cred": "string",
"external_cred_id": "string",
"enable_in_slashid_oidc_authz_server": true,
"options": {
"google": {
"authorize_scopes": [
"string"
]
},
"github": {
"authorize_scopes": [
"string"
]
},
"bitbucket": {
"authorize_scopes": [
"string"
]
},
"gitlab": {
"authorize_scopes": [
"string"
]
},
"facebook": {
"authorize_scopes": [
"string"
]
},
"line": {
"authorize_scopes": [
"string"
]
},
"azuread": {
"authorize_scopes": [
"string"
],
"tenant": "common"
},
"okta": {
"authorize_scopes": [
"string"
],
"organization_url": "string"
},
"apple": {
"authorize_scopes": [
"string"
],
"private_key": "string",
"team_id": "string",
"key_id": "string",
"secret_lifetime": "string"
}
}
}'