All URIs are relative to https://subdomain.okta.com
Method | HTTP request | Description |
---|---|---|
activateAuthenticator | POST /api/v1/authenticators/{authenticatorId}/lifecycle/activate | Activate an Authenticator |
createAuthenticator | POST /api/v1/authenticators | Create an Authenticator |
deactivateAuthenticator | POST /api/v1/authenticators/{authenticatorId}/lifecycle/deactivate | Deactivate an Authenticator |
getAuthenticator | GET /api/v1/authenticators/{authenticatorId} | Retrieve an Authenticator |
listAuthenticators | GET /api/v1/authenticators | List all Authenticators |
updateAuthenticator | PUT /api/v1/authenticators/{authenticatorId} | Replace an Authenticator |
Authenticator activateAuthenticator()
Activates an authenticator by authenticatorId
.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthenticatorApi(configuration);
let body:okta.AuthenticatorApiActivateAuthenticatorRequest = {
// string
authenticatorId: "authenticatorId_example",
};
apiInstance.activateAuthenticator(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authenticatorId | [string] | defaults to undefined |
Authenticator
| Status code | Description | Response headers | |————-|————-|——————| 200 | OK | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Authenticator createAuthenticator(authenticator)
Creates an authenticator. You can use this operation as part of the "Create a custom authenticator" flow. See the Custom authenticator integration guide.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthenticatorApi(configuration);
let body:okta.AuthenticatorApiCreateAuthenticatorRequest = {
// Authenticator
authenticator: {
key: "key_example",
name: "name_example",
provider: null,
settings: {
allowedFor: "any",
appInstanceId: "appInstanceId_example",
channelBinding: {
required: "ALWAYS",
style: "style_example",
},
compliance: {
fips: "OPTIONAL",
},
tokenLifetimeInMinutes: 1,
userVerification: "PREFERRED",
},
status: "ACTIVE",
type: "app",
},
// boolean | Whether to execute the activation lifecycle operation when Okta creates the authenticator (optional)
activate: false,
};
apiInstance.createAuthenticator(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authenticator | Authenticator | ||
activate | [boolean] | Whether to execute the activation lifecycle operation when Okta creates the authenticator | (optional) defaults to undefined |
Authenticator
| Status code | Description | Response headers | |————-|————-|——————| 200 | OK | - | 400 | Bad Request | - | 403 | Forbidden | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Authenticator deactivateAuthenticator()
Deactivates an authenticator by authenticatorId
.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthenticatorApi(configuration);
let body:okta.AuthenticatorApiDeactivateAuthenticatorRequest = {
// string
authenticatorId: "authenticatorId_example",
};
apiInstance.deactivateAuthenticator(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authenticatorId | [string] | defaults to undefined |
Authenticator
| Status code | Description | Response headers | |————-|————-|——————| 200 | OK | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Authenticator getAuthenticator()
Fetches an authenticator from your Okta organization by authenticatorId
.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthenticatorApi(configuration);
let body:okta.AuthenticatorApiGetAuthenticatorRequest = {
// string
authenticatorId: "authenticatorId_example",
};
apiInstance.getAuthenticator(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authenticatorId | [string] | defaults to undefined |
Authenticator
| Status code | Description | Response headers | |————-|————-|——————| 200 | OK | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array
listAuthenticators()
Enumerates authenticators in your organization.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthenticatorApi(configuration);
let body:any = {};
apiInstance.listAuthenticators(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
This endpoint does not need any parameter.
**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]
Authenticator updateAuthenticator(authenticator)
Updates an authenticator
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AuthenticatorApi(configuration);
let body:okta.AuthenticatorApiUpdateAuthenticatorRequest = {
// string
authenticatorId: "authenticatorId_example",
// Authenticator
authenticator: {
key: "key_example",
name: "name_example",
provider: null,
settings: {
allowedFor: "any",
appInstanceId: "appInstanceId_example",
channelBinding: {
required: "ALWAYS",
style: "style_example",
},
compliance: {
fips: "OPTIONAL",
},
tokenLifetimeInMinutes: 1,
userVerification: "PREFERRED",
},
status: "ACTIVE",
type: "app",
},
};
apiInstance.updateAuthenticator(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
authenticator | Authenticator | ||
authenticatorId | [string] | defaults to undefined |
Authenticator
| Status code | Description | Response headers | |————-|————-|——————| 200 | OK | - | 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]