1. Arayüz Üzerinden İki Faktörlü Kimlik Doğrulaması

      


      


      



      


      



2. Api Üzerinden İki Faktörlü Kimlik Doğrulaması

Curl isteği:


curl -location -request POST 'http:/<idmadresi>/api/legacy/sts/oauth/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--form 'grant_type=password' \
--form 'client_secret=<client_secret>' \
--form 'username=<username>' \
--form 'Content-Type=application/json' \
--form 'password=<password>' \
--form 'client_id=<client_id>' \


Result_Code: 

   

    "error""Two-factor validation required.",
    "request_captcha"false,
    "result_code""STS_0011"


Curl isteği:


curl -location -request POST '<idmadresi>/api/legacy/sts/oauth/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--form 'grant_type=password' \
--form 'client_secret=<client_secret>' \
--form 'username=<username>' \
--form 'Content-Type=application/json' \
--form 'password=<password>' \
--form 'client_id=<client_id>' \
--form 'twofactor_authentication_validation_pin=<pin>'


Result_Code: 


    "error""Two-factor pin is invalid.",
    "request_captcha"false,
    "result_code""STS_0013"


Curl isteği:


curl -location -request POST 'http:/<idmadresi>/api/legacy/sts/oauth/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--form 'grant_type=password' \
--form 'client_secret=<client_secret>' \
--form 'username=<username><' \
--form 'Content-Type=application/json' \
--form 'password=<password>' \
--form 'client_id=<client_id>' \
--form 'twofactor_authentication_validation_pin=<pin>'


  Result_Code: 

 

    "acces_token""0916bc31c62173a55209ab5c353f94dec6ff431b32481e83bb2800de2f5b6fff",
    "access_token""0916bc31c62173a55209ab5c353f94dec6ff431b32481e83bb2800de2f5b6fff",
    "token_type""bearer",
    "expires_in"31535999,
    "refresh_token""1a9fb35abed1421662337c767446118dbb8e130c48afa1cb2706d1ff4d2025cb",
    "result_code""STS_0000"



Curl isteği:


curl -location -request POST 'http://<idmadresi>/api/legacy/sts/oauth/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--form 'grant_type=password' \
--form 'client_secret=<client_secret>' \
--form 'username=<username>' \
--form 'Content-Type=application/json' \
--form 'password=<password>' \
--form 'client_id=<client_id>' \


Result_Code: 


    "error""Two-factor authentication configuration required.",
    "request_captcha"false,
    "result_code""STS_0012"