mshatunov
11/3/2018 - 12:28 PM

alfa

Рега
curl -ik -H 'Accept: application/json' https://testsense.alfabank.ru/passport/openid-green/register\?response_type\=CODE\&client_id\=mobile-app\&phone_number\=79167808059

Активейт
curl -ik -X POST https://testsense.alfabank.ru/passport/idp/not-client-sms/activate -H 'Authorization: Basic YWRtaW46cXdlMTIzNA==' -H 'Content-Type: application/json' -d "relying_party=mobile-app&data.token=eyJjdHkiOiJKV1QiLCJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiZGlyIn0..ZrQMDAm7gafWf83G.bAeKHXygQEBmJ8GagKHheeN1f92Ihqxq4akjxsqSr7lWOYIRzGwPXo8D2OnGfs8OMFBZh__xuQgZ2nz9S_sUIOAX_rNht7XIu3CA96Tn4RZ8nWD-RjPXqGgkNTtJB4dqRbLQXcxyg9uLuxqr8AV39AAUOyIR8JDgOkASHReWDThbJzVbanxJ9GaaJ0U-qlmvn1wwolGHP1gkvoNHDzqzULl1kM10r3IojrZ1K4X296nzpjlk7_bSm1sW3A.A3z5hcfJ2hjOgFeGArFDLA&enroll=not-client-sms"

Верифай
//curl -ik https://testsense.alfabank.ru/passport-red/openid/authorize -d "client_id=mobile-app&response_type=code&acr_values=not-client-sms&enroll='not-client-sms'&scope='openid mobile-bank'&token=eyJjdHkiOiJKV1QiLCJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiZGlyIn0..gZFxJym1KD2rEgLG.o9pkg8n3138wRk9PGX1iuREQFPhserDr46CGFtuqL_nAsU36lJDq8DPYBTSfQEqjw7-ixi9e2ugVjB83qEGUGLwhrVinmZ-2pcCQO9ZLqKc3bdOYr0ddw1PLuNzjqIdQQJ-ZTzEe1d-2lhPU7FyHI5A7UKt3xamJCR6GfoNlHHLk3Cwc67g01Vn8pySGv49D7qYybJwNzWGclY_ygP7nSFvU0hjLdcagmmJnbu7zCZISvuM0q89X9ts3OOV_arXuuq928gQmTxNoqN34ewayv4_SHBWUuksmvLYyQJNtLPJKakKr.APyzVf6ogFmnsK4dYX_V4w&full_name=ПОСТНИКОВА АННА АЛЕКСЕЕВНА&birth_date=01/01/2000"
curl -ik -X POST https://testsense.alfabank.ru/passport/idp/not-client-sms/verify -H 'Authorization: Basic YWRtaW46cXdlMTIzNA==' -H 'Content-Type: application/json' -d "data.acr_values=not-client-sms&data.code=0000&data.full_name=ПОСТНИКОВА АННА АЛЕКСЕЕВНА&data.birth_date=01/01/2000&relying_party=mobile-app&data.token=eyJjdHkiOiJKV1QiLCJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiZGlyIn0..TowsHl0hEIwIqlHl.-mns-GphqaAVJnhvWzAamfiey_XR1uO2DjZgNeqr5PRQ6C8EU6NqECzo9F1UYNye6ndrXApKTokmGdpeDLBIoY1a8BOpGWYsKhRhAi3-BLC43Mg0Fg_qJY_8NY3nDQPzryyBPpj70p_XV5pwSI_aviNcP40zt_c4mJYH7h959tVY2OVu7UqLNK2A3csLMxV6S7iumzT4ZVTrN6xUTQrsPW0mGusT38rFhiDh8uI-2AbgVvsDu_xULdSvE-bbZSyMCuiTbsrgMHM6MVutX647DMud_qAK1Xsdee52Xt1WY4tcrTwW.01fPOTleodp9fGEbU6hClA&enroll=not-client-sms"


curl -ik -X POST https://testsense.alfabank.ru/passport/idp/not-client-sms/verify -H 'Authorization: Basic YWRtaW46cXdlMTIzNA==' -H 'Content-Type: application/json' -d "data.acr_values=not-client-sms&data.code=0000&data.full_name=СТЕПАНОВА ЕЛЕНА ВИКТОРОВНА&data.birth_date=16/07/1974&relying_party=mobile-app&data.token=eyJjdHkiOiJKV1QiLCJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiZGlyIn0..3CAB1QaCxGnKz_OZ.QiGTXCqk1MB7Vch5-KLTNhn91E3iqWeOYWLFPLIM1DNZPiDgoM5QV7eCQ9fSX0tHWZ_o09_C6oPj4poWPGgoVOQ1PIDZRUGzAbSqSaftZw65fdsvKN1mK9M2LfiXKhCj0gi9pdU7RXcjp00MwGatXu2MF0-m4xcDzux2CObcS1UlRpYz7bk4QQomMTg1Fssg5VpyoI-be5_ydUq9SxmnfS7OOwfzcvy1YW4Poc8l1eX8v4UnEqLoldp_RHP_oGVbxQgAt7aFjo44VSbGLlwDZp_YWSFSAVNAPu8nMKjmuw2yN3sp.xxM02qYp_6_WeMss0emJBA&enroll=not-client-sms"