Skip to main content

sailpoint.mfa_configuration.MFAConfigurationApi

Configure and test multifactor authentication (MFA) methods All URIs are relative to https://sailpoint.api.identitynow.com

MethodHTTP requestDescription
get-mfa-duo-config-v1GET /mfa/v1/duo-web/configConfiguration of duo mfa method
get-mfa-kba-config-v1GET /mfa/v1/kba/configConfiguration of kba mfa method
get-mfa-okta-config-v1GET /mfa/v1/okta-verify/configConfiguration of okta mfa method
set-mfa-duo-config-v1PUT /mfa/v1/duo-web/configSet duo mfa configuration
set-mfa-okta-config-v1PUT /mfa/v1/okta-verify/configSet okta mfa configuration
set-mfakba-config-v1POST /mfa/v1/kba/config/answersSet mfa kba configuration
test-mfa-config-v1GET /mfa/v1/{method}/testMfa method's test configuration

get-mfa-duo-config-v1

Configuration of duo mfa method This API returns the configuration of an Duo MFA method.

API Spec

Parameters

This endpoint does not need any parameter.

Return type

Mfaduoconfig

Responses

CodeDescriptionData TypeResponse headers
200The configuration of an Duo MFA method.Mfaduoconfig-
400Client Error - Returned if the request body is invalid.Errorresponsedto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetMFAOktaConfigV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto-
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.GetMFAOktaConfigV1429Response-
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto-

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

Example

from sailpoint.mfa_configuration.api.mfa_configuration_api import MFAConfigurationApi
from sailpoint.mfa_configuration.api_client import ApiClient
from sailpoint.mfa_configuration.models.mfaduoconfig import Mfaduoconfig
from sailpoint.configuration import Configuration
configuration = Configuration()


with ApiClient(configuration) as api_client:

try:
# Configuration of duo mfa method

results = MFAConfigurationApi(api_client).get_mfa_duo_config_v1()
# Below is a request that includes all optional parameters
# results = MFAConfigurationApi(api_client).get_mfa_duo_config_v1()
print("The response of MFAConfigurationApi->get_mfa_duo_config_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling MFAConfigurationApi->get_mfa_duo_config_v1: %s\n" % e)

[Back to top]

get-mfa-kba-config-v1

Configuration of kba mfa method This API returns the KBA configuration for MFA.

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
Queryall_languagesbool(optional)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

Return type

List[Kbaquestion]

Responses

CodeDescriptionData TypeResponse headers
200The configuration for KBA MFA method.List[Kbaquestion]-
400Client Error - Returned if the request body is invalid.Errorresponsedto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetMFAOktaConfigV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto-
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.GetMFAOktaConfigV1429Response-
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto-

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

Example

from sailpoint.mfa_configuration.api.mfa_configuration_api import MFAConfigurationApi
from sailpoint.mfa_configuration.api_client import ApiClient
from sailpoint.mfa_configuration.models.kbaquestion import Kbaquestion
from sailpoint.configuration import Configuration
configuration = Configuration()


with ApiClient(configuration) as api_client:
all_languages = allLanguages=true # bool | 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) # bool | 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)

try:
# Configuration of kba mfa method

results = MFAConfigurationApi(api_client).get_mfa_kba_config_v1()
# Below is a request that includes all optional parameters
# results = MFAConfigurationApi(api_client).get_mfa_kba_config_v1(all_languages)
print("The response of MFAConfigurationApi->get_mfa_kba_config_v1:\n")
for item in results:
print(item.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling MFAConfigurationApi->get_mfa_kba_config_v1: %s\n" % e)

[Back to top]

get-mfa-okta-config-v1

Configuration of okta mfa method This API returns the configuration of an Okta MFA method.

API Spec

Parameters

This endpoint does not need any parameter.

Return type

Mfaoktaconfig

Responses

CodeDescriptionData TypeResponse headers
200The configuration of an Okta MFA method.Mfaoktaconfig-
400Client Error - Returned if the request body is invalid.Errorresponsedto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetMFAOktaConfigV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto-
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.GetMFAOktaConfigV1429Response-
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto-

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

Example

from sailpoint.mfa_configuration.api.mfa_configuration_api import MFAConfigurationApi
from sailpoint.mfa_configuration.api_client import ApiClient
from sailpoint.mfa_configuration.models.mfaoktaconfig import Mfaoktaconfig
from sailpoint.configuration import Configuration
configuration = Configuration()


with ApiClient(configuration) as api_client:

try:
# Configuration of okta mfa method

results = MFAConfigurationApi(api_client).get_mfa_okta_config_v1()
# Below is a request that includes all optional parameters
# results = MFAConfigurationApi(api_client).get_mfa_okta_config_v1()
print("The response of MFAConfigurationApi->get_mfa_okta_config_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling MFAConfigurationApi->get_mfa_okta_config_v1: %s\n" % e)

[Back to top]

set-mfa-duo-config-v1

Set duo mfa configuration This API sets the configuration of an Duo MFA method.

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
BodymfaduoconfigMfaduoconfigTrue

Return type

Mfaduoconfig

Responses

CodeDescriptionData TypeResponse headers
200MFA configuration of an Duo MFA method.Mfaduoconfig-
400Client Error - Returned if the request body is invalid.Errorresponsedto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetMFAOktaConfigV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto-
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.GetMFAOktaConfigV1429Response-
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto-

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Example

from sailpoint.mfa_configuration.api.mfa_configuration_api import MFAConfigurationApi
from sailpoint.mfa_configuration.api_client import ApiClient
from sailpoint.mfa_configuration.models.mfaduoconfig import Mfaduoconfig
from sailpoint.configuration import Configuration
configuration = Configuration()


with ApiClient(configuration) as api_client:
mfaduoconfig = '''{"mfaMethod":"duo-web","enabled":true,"host":"www.example.com","accessKey":"qw123Y3QlA5UqocYpdU3rEkzrK2D497y","identityAttribute":"email","configProperties":{"skey":"12q3WERlcUHWJmiMqyCXI3uOF7EaDJTbdeOp6E2B","ikey":"Q123WE45R6TY7890ZXCV"}}''' # Mfaduoconfig |

try:
# Set duo mfa configuration
new_mfaduoconfig = Mfaduoconfig.from_json(mfaduoconfig)
results = MFAConfigurationApi(api_client).set_mfa_duo_config_v1(mfaduoconfig=new_mfaduoconfig)
# Below is a request that includes all optional parameters
# results = MFAConfigurationApi(api_client).set_mfa_duo_config_v1(new_mfaduoconfig)
print("The response of MFAConfigurationApi->set_mfa_duo_config_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling MFAConfigurationApi->set_mfa_duo_config_v1: %s\n" % e)

[Back to top]

set-mfa-okta-config-v1

Set okta mfa configuration This API sets the configuration of an Okta MFA method.

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
BodymfaoktaconfigMfaoktaconfigTrue

Return type

Mfaoktaconfig

Responses

CodeDescriptionData TypeResponse headers
200MFA configuration of an Okta MFA method.Mfaoktaconfig-
400Client Error - Returned if the request body is invalid.Errorresponsedto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetMFAOktaConfigV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto-
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.GetMFAOktaConfigV1429Response-
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto-

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Example

from sailpoint.mfa_configuration.api.mfa_configuration_api import MFAConfigurationApi
from sailpoint.mfa_configuration.api_client import ApiClient
from sailpoint.mfa_configuration.models.mfaoktaconfig import Mfaoktaconfig
from sailpoint.configuration import Configuration
configuration = Configuration()


with ApiClient(configuration) as api_client:
mfaoktaconfig = '''{"mfaMethod":"okta-verify","enabled":true,"host":"www.example.com","accessKey":"dk778Y3QlA5UqocYpdU3rEkzrK2D497y","identityAttribute":"email"}''' # Mfaoktaconfig |

try:
# Set okta mfa configuration
new_mfaoktaconfig = Mfaoktaconfig.from_json(mfaoktaconfig)
results = MFAConfigurationApi(api_client).set_mfa_okta_config_v1(mfaoktaconfig=new_mfaoktaconfig)
# Below is a request that includes all optional parameters
# results = MFAConfigurationApi(api_client).set_mfa_okta_config_v1(new_mfaoktaconfig)
print("The response of MFAConfigurationApi->set_mfa_okta_config_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling MFAConfigurationApi->set_mfa_okta_config_v1: %s\n" % e)

[Back to top]

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.

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
Bodykbaanswerrequestitem[]KbaanswerrequestitemTrue

Return type

List[Kbaanswerresponseitem]

Responses

CodeDescriptionData TypeResponse headers
200The new KBA configuration for the user.List[Kbaanswerresponseitem]-
400Client Error - Returned if the request body is invalid.Errorresponsedto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetMFAOktaConfigV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto-
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.GetMFAOktaConfigV1429Response-
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto-

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Example

from sailpoint.mfa_configuration.api.mfa_configuration_api import MFAConfigurationApi
from sailpoint.mfa_configuration.api_client import ApiClient
from sailpoint.mfa_configuration.models.kbaanswerrequestitem import Kbaanswerrequestitem
from sailpoint.mfa_configuration.models.kbaanswerresponseitem import Kbaanswerresponseitem
from sailpoint.configuration import Configuration
configuration = Configuration()


with ApiClient(configuration) as api_client:
kbaanswerrequestitem = '''[{"id":"173423","answer":"822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34"},{"id":"c54fee53-2d63-4fc5-9259-3e93b9994135","answer":"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"}]''' # List[Kbaanswerrequestitem] |

try:
# Set mfa kba configuration
new_kbaanswerrequestitem = Kbaanswerrequestitem.from_json(kbaanswerrequestitem)
results = MFAConfigurationApi(api_client).set_mfakba_config_v1(kbaanswerrequestitem=new_kbaanswerrequestitem)
# Below is a request that includes all optional parameters
# results = MFAConfigurationApi(api_client).set_mfakba_config_v1(new_kbaanswerrequestitem)
print("The response of MFAConfigurationApi->set_mfakba_config_v1:\n")
for item in results:
print(item.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling MFAConfigurationApi->set_mfakba_config_v1: %s\n" % e)

[Back to top]

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.

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
PathmethodstrTrueThe name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'.

Return type

Mfaconfigtestresponse

Responses

CodeDescriptionData TypeResponse headers
200The result of configuration test for the MFA provider.Mfaconfigtestresponse-
400Client Error - Returned if the request body is invalid.Errorresponsedto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetMFAOktaConfigV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto-
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.GetMFAOktaConfigV1429Response-
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto-

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

Example

from sailpoint.mfa_configuration.api.mfa_configuration_api import MFAConfigurationApi
from sailpoint.mfa_configuration.api_client import ApiClient
from sailpoint.mfa_configuration.models.mfaconfigtestresponse import Mfaconfigtestresponse
from sailpoint.configuration import Configuration
configuration = Configuration()


with ApiClient(configuration) as api_client:
method = 'okta-verify' # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'.

try:
# Mfa method's test configuration

results = MFAConfigurationApi(api_client).test_mfa_config_v1(method=method)
# Below is a request that includes all optional parameters
# results = MFAConfigurationApi(api_client).test_mfa_config_v1(method)
print("The response of MFAConfigurationApi->test_mfa_config_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling MFAConfigurationApi->test_mfa_config_v1: %s\n" % e)

[Back to top]