MFAConfigurationApi
Configure and test multifactor authentication (MFA) methods All URIs are relative to https://sailpoint.api.identitynow.com
| Method | HTTP request | Description |
|---|---|---|
| get-mfa-duo-config-v1 | GET /mfa/v1/duo-web/config | Configuration of duo mfa method |
| get-mfa-kba-config-v1 | GET /mfa/v1/kba/config | Configuration of kba mfa method |
| get-mfa-okta-config-v1 | GET /mfa/v1/okta-verify/config | Configuration of okta mfa method |
| set-mfa-duo-config-v1 | PUT /mfa/v1/duo-web/config | Set duo mfa configuration |
| set-mfakba-config-v1 | POST /mfa/v1/kba/config/answers | Set mfa kba configuration |
| set-mfa-okta-config-v1 | PUT /mfa/v1/okta-verify/config | Set okta mfa configuration |
| test-mfa-config-v1 | GET /mfa/v1/{method}/test | Mfa method's test configuration |
get-mfa-duo-config-v1
Configuration of duo mfa method This API returns the configuration of an Duo MFA method.
Parameters
This endpoint does not need any parameter.
Return type
Mfaduoconfig
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
import { MFAConfigurationApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';
const configuration = new Configuration();
const apiInstance = new MFAConfigurationApi(configuration);
const result = await apiInstance.getMFADuoConfigV1({ });
console.log(result);
get-mfa-kba-config-v1
Configuration of kba mfa method This API returns the KBA configuration for MFA.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| allLanguages | boolean | Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false | [optional] [default to undefined] |
Return type
Array<Kbaquestion>
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
import { MFAConfigurationApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';
const configuration = new Configuration();
const apiInstance = new MFAConfigurationApi(configuration);
const allLanguages: boolean = allLanguages=true; // Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false (optional)
const result = await apiInstance.getMFAKbaConfigV1({ });
console.log(result);
get-mfa-okta-config-v1
Configuration of okta mfa method This API returns the configuration of an Okta MFA method.
Parameters
This endpoint does not need any parameter.
Return type
Mfaoktaconfig
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
import { MFAConfigurationApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';
const configuration = new Configuration();
const apiInstance = new MFAConfigurationApi(configuration);
const result = await apiInstance.getMFAOktaConfigV1({ });
console.log(result);
set-mfa-duo-config-v1
Set duo mfa configuration This API sets the configuration of an Duo MFA method.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| mfaduoconfig | Mfaduoconfig |
Return type
Mfaduoconfig
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Example
import { MFAConfigurationApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';
const configuration = new Configuration();
const apiInstance = new MFAConfigurationApi(configuration);
const mfaduoconfig: Mfaduoconfig = {"mfaMethod":"duo-web","enabled":true,"host":"www.example.com","accessKey":"qw123Y3QlA5UqocYpdU3rEkzrK2D497y","identityAttribute":"email","configProperties":{"skey":"12q3WERlcUHWJmiMqyCXI3uOF7EaDJTbdeOp6E2B","ikey":"Q123WE45R6TY7890ZXCV"}}; //
const result = await apiInstance.setMFADuoConfigV1({ mfaduoconfig: mfaduoconfig });
console.log(result);
set-mfakba-config-v1
Set mfa kba configuration This API sets answers to challenge questions. Any configured questions omitted from the request are removed from user KBA configuration.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| kbaanswerrequestitem | Array<Kbaanswerrequestitem> |
Return type
Array<Kbaanswerresponseitem>
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Example
import { MFAConfigurationApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';
const configuration = new Configuration();
const apiInstance = new MFAConfigurationApi(configuration);
const kbaanswerrequestitem: Array<Kbaanswerrequestitem> = [{"id":"173423","answer":"822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34"},{"id":"c54fee53-2d63-4fc5-9259-3e93b9994135","answer":"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"}]; //
const result = await apiInstance.setMFAKBAConfigV1({ kbaanswerrequestitem: kbaanswerrequestitem });
console.log(result);
set-mfa-okta-config-v1
Set okta mfa configuration This API sets the configuration of an Okta MFA method.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| mfaoktaconfig | Mfaoktaconfig |
Return type
Mfaoktaconfig
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Example
import { MFAConfigurationApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';
const configuration = new Configuration();
const apiInstance = new MFAConfigurationApi(configuration);
const mfaoktaconfig: Mfaoktaconfig = {"mfaMethod":"okta-verify","enabled":true,"host":"www.example.com","accessKey":"dk778Y3QlA5UqocYpdU3rEkzrK2D497y","identityAttribute":"email"}; //
const result = await apiInstance.setMFAOktaConfigV1({ mfaoktaconfig: mfaoktaconfig });
console.log(result);
test-mfa-config-v1
Mfa method's test configuration This API validates that the configuration is valid and will properly authenticate with the MFA provider identified by the method path parameter.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| method | `'okta-verify' | 'duo-web'` | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. |
Return type
Mfaconfigtestresponse
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
import { MFAConfigurationApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';
const configuration = new Configuration();
const apiInstance = new MFAConfigurationApi(configuration);
const method: string = okta-verify; // The name of the MFA method. The currently supported method names are \'okta-verify\' and \'duo-web\'.
const result = await apiInstance.testMFAConfigV1({ method: method });
console.log(result);