All URIs are relative to https://subdomain.okta.com
Method | HTTP request | Description |
---|---|---|
activateAuthorizationServer | POST /api/v1/authorizationServers/{authServerId}/lifecycle/activate | Activate an Authorization Server |
activateAuthorizationServerPolicy | POST /api/v1/authorizationServers/{authServerId}/policies/{policyId}/lifecycle/activate | Activate a Policy |
activateAuthorizationServerPolicyRule | POST /api/v1/authorizationServers/{authServerId}/policies/{policyId}/rules/{ruleId}/lifecycle/activate | Activate a Policy Rule |
createAuthorizationServer | POST /api/v1/authorizationServers | Create an Authorization Server |
createAuthorizationServerPolicy | POST /api/v1/authorizationServers/{authServerId}/policies | Create a Policy |
createAuthorizationServerPolicyRule | POST /api/v1/authorizationServers/{authServerId}/policies/{policyId}/rules | Create a Policy Rule |
createOAuth2Claim | POST /api/v1/authorizationServers/{authServerId}/claims | Create a Custom Token Claim |
createOAuth2Scope | POST /api/v1/authorizationServers/{authServerId}/scopes | Create a Custom Token Scope |
deactivateAuthorizationServer | POST /api/v1/authorizationServers/{authServerId}/lifecycle/deactivate | Deactivate an Authorization Server |
deactivateAuthorizationServerPolicy | POST /api/v1/authorizationServers/{authServerId}/policies/{policyId}/lifecycle/deactivate | Deactivate a Policy |
deactivateAuthorizationServerPolicyRule | POST /api/v1/authorizationServers/{authServerId}/policies/{policyId}/rules/{ruleId}/lifecycle/deactivate | Deactivate a Policy Rule |
deleteAuthorizationServer | DELETE /api/v1/authorizationServers/{authServerId} | Delete an Authorization Server |
deleteAuthorizationServerPolicy | DELETE /api/v1/authorizationServers/{authServerId}/policies/{policyId} | Delete a Policy |
deleteAuthorizationServerPolicyRule | DELETE /api/v1/authorizationServers/{authServerId}/policies/{policyId}/rules/{ruleId} | Delete a Policy Rule |
deleteOAuth2Claim | DELETE /api/v1/authorizationServers/{authServerId}/claims/{claimId} | Delete a Custom Token Claim |
deleteOAuth2Scope | DELETE /api/v1/authorizationServers/{authServerId}/scopes/{scopeId} | Delete a Custom Token Scope |
getAuthorizationServer | GET /api/v1/authorizationServers/{authServerId} | Retrieve an Authorization Server |
getAuthorizationServerPolicy | GET /api/v1/authorizationServers/{authServerId}/policies/{policyId} | Retrieve a Policy |
getAuthorizationServerPolicyRule | GET /api/v1/authorizationServers/{authServerId}/policies/{policyId}/rules/{ruleId} | Retrieve a Policy Rule |
getOAuth2Claim | GET /api/v1/authorizationServers/{authServerId}/claims/{claimId} | Retrieve a Custom Token Claim |
getOAuth2Scope | GET /api/v1/authorizationServers/{authServerId}/scopes/{scopeId} | Retrieve a Custom Token Scope |
getRefreshTokenForAuthorizationServerAndClient | GET /api/v1/authorizationServers/{authServerId}/clients/{clientId}/tokens/{tokenId} | Retrieve a Refresh Token for a Client |
listAuthorizationServerKeys | GET /api/v1/authorizationServers/{authServerId}/credentials/keys | List all Credential Keys |
listAuthorizationServerPolicies | GET /api/v1/authorizationServers/{authServerId}/policies | List all Policies |
listAuthorizationServerPolicyRules | GET /api/v1/authorizationServers/{authServerId}/policies/{policyId}/rules | List all Policy Rules |
listAuthorizationServers | GET /api/v1/authorizationServers | List all Authorization Servers |
listOAuth2Claims | GET /api/v1/authorizationServers/{authServerId}/claims | List all Custom Token Claims |
listOAuth2ClientsForAuthorizationServer | GET /api/v1/authorizationServers/{authServerId}/clients | List all Clients |
listOAuth2Scopes | GET /api/v1/authorizationServers/{authServerId}/scopes | List all Custom Token Scopes |
listRefreshTokensForAuthorizationServerAndClient | GET /api/v1/authorizationServers/{authServerId}/clients/{clientId}/tokens | List all Refresh Tokens for a Client |
revokeRefreshTokenForAuthorizationServerAndClient | DELETE /api/v1/authorizationServers/{authServerId}/clients/{clientId}/tokens/{tokenId} | Revoke a Refresh Token for a Client |
revokeRefreshTokensForAuthorizationServerAndClient | DELETE /api/v1/authorizationServers/{authServerId}/clients/{clientId}/tokens | Revoke all Refresh Tokens for a Client |
rotateAuthorizationServerKeys | POST /api/v1/authorizationServers/{authServerId}/credentials/lifecycle/keyRotate | Rotate all Credential Keys |
updateAuthorizationServer | PUT /api/v1/authorizationServers/{authServerId} | Replace an Authorization Server |
updateAuthorizationServerPolicy | PUT /api/v1/authorizationServers/{authServerId}/policies/{policyId} | Replace a Policy |
updateAuthorizationServerPolicyRule | PUT /api/v1/authorizationServers/{authServerId}/policies/{policyId}/rules/{ruleId} | Replace a Policy Rule |
updateOAuth2Claim | PUT /api/v1/authorizationServers/{authServerId}/claims/{claimId} | Replace a Custom Token Claim |
updateOAuth2Scope | PUT /api/v1/authorizationServers/{authServerId}/scopes/{scopeId} | Replace a Custom Token Scope |
void activateAuthorizationServer()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiActivateAuthorizationServerRequest = {
// string
authServerId: "authServerId_example",
};
apiInstance.activateAuthorizationServer(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authServerId | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | No Content | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void activateAuthorizationServerPolicy()
Activate Authorization Server Policy
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiActivateAuthorizationServerPolicyRequest = {
// string
authServerId: "authServerId_example",
// string
policyId: "policyId_example",
};
apiInstance.activateAuthorizationServerPolicy(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authServerId | [string] | defaults to undefined | |
policyId | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | No Content | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void activateAuthorizationServerPolicyRule()
Activate Authorization Server Policy Rule
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiActivateAuthorizationServerPolicyRuleRequest = {
// string
authServerId: "authServerId_example",
// string
policyId: "policyId_example",
// string
ruleId: "ruleId_example",
};
apiInstance.activateAuthorizationServerPolicyRule(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authServerId | [string] | defaults to undefined | |
policyId | [string] | defaults to undefined | |
ruleId | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | No Content | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AuthorizationServer createAuthorizationServer(authorizationServer)
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiCreateAuthorizationServerRequest = {
// AuthorizationServer
authorizationServer: {
audiences: [
"audiences_example",
],
credentials: {
signing: {
kid: "kid_example",
rotationMode: "AUTO",
use: "sig",
},
},
description: "description_example",
issuer: "issuer_example",
issuerMode: "CUSTOM_URL",
name: "name_example",
status: "ACTIVE",
},
};
apiInstance.createAuthorizationServer(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authorizationServer | AuthorizationServer |
AuthorizationServer
| Status code | Description | Response headers | |————-|————-|——————| 201 | Created | - | 400 | Bad Request | - | 403 | Forbidden | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AuthorizationServerPolicy createAuthorizationServerPolicy(policy)
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiCreateAuthorizationServerPolicyRequest = {
// string
authServerId: "authServerId_example",
// AuthorizationServerPolicy
policy: null,
};
apiInstance.createAuthorizationServerPolicy(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
policy | AuthorizationServerPolicy | ||
authServerId | [string] | defaults to undefined |
AuthorizationServerPolicy
| Status code | Description | Response headers | |————-|————-|——————| 201 | Created | - | 400 | Bad Request | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AuthorizationServerPolicyRule createAuthorizationServerPolicyRule(policyRule)
Creates a policy rule for the specified Custom Authorization Server and Policy.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiCreateAuthorizationServerPolicyRuleRequest = {
// string
policyId: "policyId_example",
// string
authServerId: "authServerId_example",
// AuthorizationServerPolicyRule
policyRule: null,
};
apiInstance.createAuthorizationServerPolicyRule(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
policyRule | AuthorizationServerPolicyRule | ||
policyId | [string] | defaults to undefined | |
authServerId | [string] | defaults to undefined |
AuthorizationServerPolicyRule
| Status code | Description | Response headers | |————-|————-|——————| 201 | Created | - | 400 | Bad Request | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OAuth2Claim createOAuth2Claim(oAuth2Claim)
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiCreateOAuth2ClaimRequest = {
// string
authServerId: "authServerId_example",
// OAuth2Claim
oAuth2Claim: {
alwaysIncludeInToken: true,
claimType: "IDENTITY",
conditions: {
scopes: [
"scopes_example",
],
},
group_filter_type: "CONTAINS",
name: "name_example",
status: "ACTIVE",
system: true,
value: "value_example",
valueType: "EXPRESSION",
},
};
apiInstance.createOAuth2Claim(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
oAuth2Claim | OAuth2Claim | ||
authServerId | [string] | defaults to undefined |
OAuth2Claim
| Status code | Description | Response headers | |————-|————-|——————| 201 | Success | - | 400 | Bad Request | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OAuth2Scope createOAuth2Scope(oAuth2Scope)
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiCreateOAuth2ScopeRequest = {
// string
authServerId: "authServerId_example",
// OAuth2Scope
oAuth2Scope: {
consent: "ADMIN",
_default: true,
description: "description_example",
displayName: "displayName_example",
metadataPublish: "ALL_CLIENTS",
name: "name_example",
system: true,
},
};
apiInstance.createOAuth2Scope(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
oAuth2Scope | OAuth2Scope | ||
authServerId | [string] | defaults to undefined |
OAuth2Scope
| Status code | Description | Response headers | |————-|————-|——————| 201 | Success | - | 400 | Bad Request | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void deactivateAuthorizationServer()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiDeactivateAuthorizationServerRequest = {
// string
authServerId: "authServerId_example",
};
apiInstance.deactivateAuthorizationServer(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authServerId | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | No Content | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void deactivateAuthorizationServerPolicy()
Deactivate Authorization Server Policy
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiDeactivateAuthorizationServerPolicyRequest = {
// string
authServerId: "authServerId_example",
// string
policyId: "policyId_example",
};
apiInstance.deactivateAuthorizationServerPolicy(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authServerId | [string] | defaults to undefined | |
policyId | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | No Content | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void deactivateAuthorizationServerPolicyRule()
Deactivate Authorization Server Policy Rule
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiDeactivateAuthorizationServerPolicyRuleRequest = {
// string
authServerId: "authServerId_example",
// string
policyId: "policyId_example",
// string
ruleId: "ruleId_example",
};
apiInstance.deactivateAuthorizationServerPolicyRule(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authServerId | [string] | defaults to undefined | |
policyId | [string] | defaults to undefined | |
ruleId | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | No Content | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void deleteAuthorizationServer()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiDeleteAuthorizationServerRequest = {
// string
authServerId: "authServerId_example",
};
apiInstance.deleteAuthorizationServer(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authServerId | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | No Content | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void deleteAuthorizationServerPolicy()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiDeleteAuthorizationServerPolicyRequest = {
// string
authServerId: "authServerId_example",
// string
policyId: "policyId_example",
};
apiInstance.deleteAuthorizationServerPolicy(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authServerId | [string] | defaults to undefined | |
policyId | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | No Content | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void deleteAuthorizationServerPolicyRule()
Deletes a Policy Rule defined in the specified Custom Authorization Server and Policy.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiDeleteAuthorizationServerPolicyRuleRequest = {
// string
policyId: "policyId_example",
// string
authServerId: "authServerId_example",
// string
ruleId: "ruleId_example",
};
apiInstance.deleteAuthorizationServerPolicyRule(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
policyId | [string] | defaults to undefined | |
authServerId | [string] | defaults to undefined | |
ruleId | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | No Content | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void deleteOAuth2Claim()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiDeleteOAuth2ClaimRequest = {
// string
authServerId: "authServerId_example",
// string
claimId: "claimId_example",
};
apiInstance.deleteOAuth2Claim(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authServerId | [string] | defaults to undefined | |
claimId | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | No Content | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void deleteOAuth2Scope()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiDeleteOAuth2ScopeRequest = {
// string
authServerId: "authServerId_example",
// string
scopeId: "scopeId_example",
};
apiInstance.deleteOAuth2Scope(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authServerId | [string] | defaults to undefined | |
scopeId | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | No Content | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AuthorizationServer getAuthorizationServer()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiGetAuthorizationServerRequest = {
// string
authServerId: "authServerId_example",
};
apiInstance.getAuthorizationServer(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authServerId | [string] | defaults to undefined |
AuthorizationServer
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AuthorizationServerPolicy getAuthorizationServerPolicy()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiGetAuthorizationServerPolicyRequest = {
// string
authServerId: "authServerId_example",
// string
policyId: "policyId_example",
};
apiInstance.getAuthorizationServerPolicy(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authServerId | [string] | defaults to undefined | |
policyId | [string] | defaults to undefined |
AuthorizationServerPolicy
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AuthorizationServerPolicyRule getAuthorizationServerPolicyRule()
Returns a Policy Rule by ID that is defined in the specified Custom Authorization Server and Policy.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiGetAuthorizationServerPolicyRuleRequest = {
// string
policyId: "policyId_example",
// string
authServerId: "authServerId_example",
// string
ruleId: "ruleId_example",
};
apiInstance.getAuthorizationServerPolicyRule(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
policyId | [string] | defaults to undefined | |
authServerId | [string] | defaults to undefined | |
ruleId | [string] | defaults to undefined |
AuthorizationServerPolicyRule
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OAuth2Claim getOAuth2Claim()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiGetOAuth2ClaimRequest = {
// string
authServerId: "authServerId_example",
// string
claimId: "claimId_example",
};
apiInstance.getOAuth2Claim(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authServerId | [string] | defaults to undefined | |
claimId | [string] | defaults to undefined |
OAuth2Claim
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OAuth2Scope getOAuth2Scope()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiGetOAuth2ScopeRequest = {
// string
authServerId: "authServerId_example",
// string
scopeId: "scopeId_example",
};
apiInstance.getOAuth2Scope(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authServerId | [string] | defaults to undefined | |
scopeId | [string] | defaults to undefined |
OAuth2Scope
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OAuth2RefreshToken getRefreshTokenForAuthorizationServerAndClient()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiGetRefreshTokenForAuthorizationServerAndClientRequest = {
// string
authServerId: "authServerId_example",
// string
clientId: "clientId_example",
// string
tokenId: "tokenId_example",
// string (optional)
expand: "expand_example",
};
apiInstance.getRefreshTokenForAuthorizationServerAndClient(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authServerId | [string] | defaults to undefined | |
clientId | [string] | defaults to undefined | |
tokenId | [string] | defaults to undefined | |
expand | [string] | (optional) defaults to undefined |
OAuth2RefreshToken
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array
listAuthorizationServerKeys()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiListAuthorizationServerKeysRequest = {
// string
authServerId: "authServerId_example",
};
apiInstance.listAuthorizationServerKeys(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authServerId | [string] | defaults to undefined |
**Array
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array
listAuthorizationServerPolicies()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiListAuthorizationServerPoliciesRequest = {
// string
authServerId: "authServerId_example",
};
apiInstance.listAuthorizationServerPolicies(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authServerId | [string] | defaults to undefined |
**Array
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array
listAuthorizationServerPolicyRules()
Enumerates all policy rules for the specified Custom Authorization Server and Policy.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiListAuthorizationServerPolicyRulesRequest = {
// string
policyId: "policyId_example",
// string
authServerId: "authServerId_example",
};
apiInstance.listAuthorizationServerPolicyRules(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
policyId | [string] | defaults to undefined | |
authServerId | [string] | defaults to undefined |
**Array
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array
listAuthorizationServers()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiListAuthorizationServersRequest = {
// string (optional)
q: "q_example",
// number (optional)
limit: 200,
// string (optional)
after: "after_example",
};
apiInstance.listAuthorizationServers(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
q | [string] | (optional) defaults to undefined | |
limit | [number] | (optional) defaults to 200 | |
after | [string] | (optional) defaults to undefined |
**Array
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array
listOAuth2Claims()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiListOAuth2ClaimsRequest = {
// string
authServerId: "authServerId_example",
};
apiInstance.listOAuth2Claims(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authServerId | [string] | defaults to undefined |
**Array
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array
listOAuth2ClientsForAuthorizationServer()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiListOAuth2ClientsForAuthorizationServerRequest = {
// string
authServerId: "authServerId_example",
};
apiInstance.listOAuth2ClientsForAuthorizationServer(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authServerId | [string] | defaults to undefined |
**Array
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array
listOAuth2Scopes()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiListOAuth2ScopesRequest = {
// string
authServerId: "authServerId_example",
// string (optional)
q: "q_example",
// string (optional)
filter: "filter_example",
// string (optional)
cursor: "cursor_example",
// number (optional)
limit: -1,
};
apiInstance.listOAuth2Scopes(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authServerId | [string] | defaults to undefined | |
q | [string] | (optional) defaults to undefined | |
filter | [string] | (optional) defaults to undefined | |
cursor | [string] | (optional) defaults to undefined | |
limit | [number] | (optional) defaults to -1 |
**Array
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array
listRefreshTokensForAuthorizationServerAndClient()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiListRefreshTokensForAuthorizationServerAndClientRequest = {
// string
authServerId: "authServerId_example",
// string
clientId: "clientId_example",
// string (optional)
expand: "expand_example",
// string (optional)
after: "after_example",
// number (optional)
limit: -1,
};
apiInstance.listRefreshTokensForAuthorizationServerAndClient(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authServerId | [string] | defaults to undefined | |
clientId | [string] | defaults to undefined | |
expand | [string] | (optional) defaults to undefined | |
after | [string] | (optional) defaults to undefined | |
limit | [number] | (optional) defaults to -1 |
**Array
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void revokeRefreshTokenForAuthorizationServerAndClient()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiRevokeRefreshTokenForAuthorizationServerAndClientRequest = {
// string
authServerId: "authServerId_example",
// string
clientId: "clientId_example",
// string
tokenId: "tokenId_example",
};
apiInstance.revokeRefreshTokenForAuthorizationServerAndClient(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authServerId | [string] | defaults to undefined | |
clientId | [string] | defaults to undefined | |
tokenId | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | No Content | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void revokeRefreshTokensForAuthorizationServerAndClient()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiRevokeRefreshTokensForAuthorizationServerAndClientRequest = {
// string
authServerId: "authServerId_example",
// string
clientId: "clientId_example",
};
apiInstance.revokeRefreshTokensForAuthorizationServerAndClient(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authServerId | [string] | defaults to undefined | |
clientId | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | No Content | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array
rotateAuthorizationServerKeys(use)
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiRotateAuthorizationServerKeysRequest = {
// string
authServerId: "authServerId_example",
// JwkUse
use: {
use: "sig",
},
};
apiInstance.rotateAuthorizationServerKeys(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
use | JwkUse | ||
authServerId | [string] | defaults to undefined |
**Array
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 400 | Bad Request | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AuthorizationServer updateAuthorizationServer(authorizationServer)
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiUpdateAuthorizationServerRequest = {
// string
authServerId: "authServerId_example",
// AuthorizationServer
authorizationServer: {
audiences: [
"audiences_example",
],
credentials: {
signing: {
kid: "kid_example",
rotationMode: "AUTO",
use: "sig",
},
},
description: "description_example",
issuer: "issuer_example",
issuerMode: "CUSTOM_URL",
name: "name_example",
status: "ACTIVE",
},
};
apiInstance.updateAuthorizationServer(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authorizationServer | AuthorizationServer | ||
authServerId | [string] | defaults to undefined |
AuthorizationServer
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 400 | Bad Request | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AuthorizationServerPolicy updateAuthorizationServerPolicy(policy)
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiUpdateAuthorizationServerPolicyRequest = {
// string
authServerId: "authServerId_example",
// string
policyId: "policyId_example",
// AuthorizationServerPolicy
policy: null,
};
apiInstance.updateAuthorizationServerPolicy(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
policy | AuthorizationServerPolicy | ||
authServerId | [string] | defaults to undefined | |
policyId | [string] | defaults to undefined |
AuthorizationServerPolicy
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 400 | Bad Request | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AuthorizationServerPolicyRule updateAuthorizationServerPolicyRule(policyRule)
Updates the configuration of the Policy Rule defined in the specified Custom Authorization Server and Policy.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiUpdateAuthorizationServerPolicyRuleRequest = {
// string
policyId: "policyId_example",
// string
authServerId: "authServerId_example",
// string
ruleId: "ruleId_example",
// AuthorizationServerPolicyRule
policyRule: null,
};
apiInstance.updateAuthorizationServerPolicyRule(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
policyRule | AuthorizationServerPolicyRule | ||
policyId | [string] | defaults to undefined | |
authServerId | [string] | defaults to undefined | |
ruleId | [string] | defaults to undefined |
AuthorizationServerPolicyRule
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 400 | Bad Request | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OAuth2Claim updateOAuth2Claim(oAuth2Claim)
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiUpdateOAuth2ClaimRequest = {
// string
authServerId: "authServerId_example",
// string
claimId: "claimId_example",
// OAuth2Claim
oAuth2Claim: {
alwaysIncludeInToken: true,
claimType: "IDENTITY",
conditions: {
scopes: [
"scopes_example",
],
},
group_filter_type: "CONTAINS",
name: "name_example",
status: "ACTIVE",
system: true,
value: "value_example",
valueType: "EXPRESSION",
},
};
apiInstance.updateOAuth2Claim(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
oAuth2Claim | OAuth2Claim | ||
authServerId | [string] | defaults to undefined | |
claimId | [string] | defaults to undefined |
OAuth2Claim
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 400 | Bad Request | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OAuth2Scope updateOAuth2Scope(oAuth2Scope)
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthorizationServerApi(configuration);
let body:okta.AuthorizationServerApiUpdateOAuth2ScopeRequest = {
// string
authServerId: "authServerId_example",
// string
scopeId: "scopeId_example",
// OAuth2Scope
oAuth2Scope: {
consent: "ADMIN",
_default: true,
description: "description_example",
displayName: "displayName_example",
metadataPublish: "ALL_CLIENTS",
name: "name_example",
system: true,
},
};
apiInstance.updateOAuth2Scope(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
oAuth2Scope | OAuth2Scope | ||
authServerId | [string] | defaults to undefined | |
scopeId | [string] | defaults to undefined |
OAuth2Scope
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 400 | Bad Request | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]