Enable
Enable
client.organizations.ssoConnection.enable(stringorganizationID, SSOConnectionEnableParams { client_id, identifier, client_secret, 2 more } params, RequestOptionsoptions?): SSOConnection { id, client_id, client_secret_set, 5 more }
POST/organizations/{organization_id}/sso-connection
Enable SSO for organization
Parameters
organizationID: string
Organization ID or label identifier
minLength1
maxLength255
Returns
Enable
import KeycardAPI from '@keycardai/api';
const client = new KeycardAPI();
const ssoConnection = await client.organizations.ssoConnection.enable('x', {
client_id: 'client_id',
identifier: 'x',
});
console.log(ssoConnection.id);{
"id": "id",
"client_id": "client_id",
"client_secret_set": true,
"created_at": "2019-12-27T18:11:19.117Z",
"identifier": "x",
"updated_at": "2019-12-27T18:11:19.117Z",
"permissions": {
"organizations": {
"read": true,
"update": true
},
"users": {
"read": true,
"list": true
}
},
"protocols": {
"oauth2": {
"authorization_endpoint": "https://example.com",
"code_challenge_methods_supported": [
"string"
],
"jwks_uri": "https://example.com",
"registration_endpoint": "https://example.com",
"scopes_supported": [
"string"
],
"token_endpoint": "https://example.com"
},
"openid": {
"userinfo_endpoint": "https://example.com"
}
}
}Returns Examples
{
"id": "id",
"client_id": "client_id",
"client_secret_set": true,
"created_at": "2019-12-27T18:11:19.117Z",
"identifier": "x",
"updated_at": "2019-12-27T18:11:19.117Z",
"permissions": {
"organizations": {
"read": true,
"update": true
},
"users": {
"read": true,
"list": true
}
},
"protocols": {
"oauth2": {
"authorization_endpoint": "https://example.com",
"code_challenge_methods_supported": [
"string"
],
"jwks_uri": "https://example.com",
"registration_endpoint": "https://example.com",
"scopes_supported": [
"string"
],
"token_endpoint": "https://example.com"
},
"openid": {
"userinfo_endpoint": "https://example.com"
}
}
}