NEW ENDPOINT #46
-
Sepertinya ada mekanisme baru saat login. Ini muncul jika anda melakukan login di perangkat yang belum pernah untuk login. STEP 1POST /v3/user/accounts/otp HTTP/1.1 Request {
"channel_code": "ovo_android",
"device_id": "87586011-0127-3469-aa2a-6016a68d45f6",
"msisdn": "+6212345678901",
"otp": {
"locale": "ID",
"sms_hash": "m9mj4ctIVR8"
}
}
Response {
"response_code": "OV00000",
"response_message": "Success",
"data": {
"otp": {
"otp_ref_id": "4d5e1669-dae2-48bf-b0e7-3030ebbb16f6",
"type": "LOGIN",
"expires_at": 1618766220,
"retry_remaining": 4,
"cooldown_period": 60,
"length": 4,
"reff_type": "OTP"
}
}
} STEP 2POST /v3/user/accounts/otp/validation HTTP/1.1 {
"channel_code": "ovo_android",
"device_id": "87586011-0127-3469-aa2a-6016a68d45f6",
"msisdn": "+62xxx",
"otp": {
"otp": "1448",
"otp_ref_id": "4d5e1669-dae2-48bf-b0e7-3030ebbb16f6",
"type": "LOGIN"
}
} Response {
"response_code": "OV00000",
"response_message": "Success",
"data": {
"otp": {
"otp_ref_id": "4d5e1669-dae2-48bf-b0e7-3030ebbb16f6",
"type": "LOGIN",
"expires_at": 1618765116,
"otp_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb2RlaGFzaCI6Ik56QmxOelJpTnpNNE1EZ3dORFZqWTJGaU9USXdaR1E1WmpZMU5qaGxaakkiLCJyYW5kb20iOiJNakEyTXprME1EUTAiLCJ2ZXJzaW9xxxxxxxxxxxx"
},
"registration_origin": {
"full_name": "SXXXXXXXXX",
"registration_origin_name": "OVO",
"email": "linXXXXXXXXXm"
}
}
} STEP 3Mendapatkan public keys STEP 4POST https://agw.ovo.id/v3/user/accounts/login {
"channel_code":"ovo_android",
"credentials":{
"otp_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb2RlaGFzaCI6IllqWXpZek15WmpFeFpqVXlOREEzWm1FeU1HVTJNakJsWWpFME56QXlZVFUiLCJyYW5kb20iOiJNalEwTWpVeU5qTTUiLCJ2ZXJzaW9uIjoxfQ.ap8bYmC05673QA2dTmhHw7L4SLsfpEXb_VG1c53Sxxxxxx",
"password":{
"format":"rsa",
"value":"QsP7bC/kLduJyBoM6gT/8sasabiwnOlt9j8JvbIs4Z/eXQU7ZPYsF3NkBgJGkHQziitktdinvZG8\nBwXpH6h2BvbtNvIa/eBY2x8TUqqNmBWoK3fj2ESNR58VxdJy+kS99WyXqs4SXdKFKBS+Y2N87+Md\nXqrDaxFPZ62JVKQ/uQ8xTNVnFT+zDV6s4i8GqWgKOUSnfknyPRUN4QVHUy4KaEerxOTtmvR2qRLg\nrKUNkFo6RAHS2K59P2UbSLP4OW06gEAJ+502pafHZwdEWZb78WyQLPH+Iym7TC0+ZA0Th71ghX/F\nRo73NuXDkqLUjzkKWL3/Y8N4Y4oEljPwhh+hVg==\n"
}
},
"device_id":"87586011-0127-3469xxxxxxxxxx",
"msisdn":"+6282xxxxxxxx",
"push_notification_id":"fs-DYcGaRbKERLhF4hkQ92:APA91bEjjUFzzFvadIKtdrrqsyrGH26xLRR5-Oyym2l9Ybv0O1cnvqA14ghuTbXz0ogazN-Kw6iGxW2klakANBaVXoFCLrT4hWJJ5FCGOz2o5bGE7RX6XpxndNkcxnqpWat449vBvYSa"
} Response {
"response_code":"OV00000",
"response_message":"Success",
"data":{
"auth":{
"access_token":"eyJhbGxxxxxxciOiJSUzI1NiJ9.eyJleHBpcnlJbk1pbGxpU2Vjb25kcyI6NjA0ODAwMDAwLCJjcmVhdGVUaW1lIjoxNjIzNDE3NjYyOTU0LCJzZWNyZXQiOiJ5aWVuL1FhNHphTkl3RXdsOUxreXRYUVFQYzNrZkxFS29iTUcxNkM0a080c09RcXhMTzBlbytuRlZSYzMrZXRvUFh0T1VrSi9TMVdBZXpFemJLUWdBVjZYT0VKc2dQWEx4WmpiK0g4VXc4R3NGZGh5S1NDYWowN1JLdEFIdDJTL2RJUkF2amhoeSt5bjZVSXhU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NaN083c2VrSmJRZkdFN1dLZ2RQZUZRdXJSV3hjQ3NHL3IyclQrc1FncVdWU3dEdXRjTkp5ejFaeWhpMkl0L1RHWVBmNXUvSGxJQjdkQmRGMHBGcTdZT3pKeFluRHJ1YW4rMGNNbkJVZldFWnZwY0h6TmJjYzMzaFhHaHlIYnpySEpLbGs3dzRkRlhTNmk5MExLVzZFTGpQaE09In0.a75AvydQ9aTgluJwial4YBKom0PoGJxwdMiKryo5ruzCObWcH56mBChuwKLBHwdUTgGRXbwe07CQPa3i55rtuUEJwOwl6l4Uv3-BEqhUP0oRoNqwdyH1qzaeldQ_77toqL0HG6wFcEU0WnVwVtfQuFoV8GrMSJSCVTwHhxzbKo7VDnsTve8a96tE9o1XFQ0vQywoqn16FR8Dame6ptSRouqJTdsKMW3OAWLOLs0q-3Vpa2AP5IjN-y9v-EMzF4NkRUPhNPmCN91JudIqj-0Eif9q5Vf0JFClDIfB53QVC3nLgGliul5EnhxN70butsL1lBSx7LDPpDF1pN-RerKRCQ",
"scope":"user"
},
"account":{
"ovo_id":"008103xxxxxxx",
"msisdn":"08213xxxxxxxx",
"account_status":"REGISTERED",
"kyc_status":"",
"authentication":"PROVIDER_OTP_PASSWORD_ENCRYPTED",
"push_notification_id":"fs-DYcGaRbxxxxxxxxxxA91bEjjUFzzFvadIKtdrrqsyrGH26xLRR5-Oyym2l9Ybv0O1cnvqA14ghuTbXz0ogazN-Kw6iGxW2klakANBaVXoFCLrT4hWJJ5FCGOz2o5bGE7RX6XpxndNkcxnqpWat449vBvYSa"
}
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments 67 replies
-
Not found nih |
Beta Was this translation helpful? Give feedback.
-
Contoh header GET /v3/user/public_keys HTTP/1.1 |
Beta Was this translation helpful? Give feedback.
-
Contoh requestnya gimana tu gan keluar link gitu?
…On Mon, Jun 14, 2021, 12:44 PM William Lie ***@***.***> wrote:
Gan setelah panggil endpoint otp, malah berubah jadi link
{
"response_code": "OV00000",
"response_message": "Success",
"data": {
"otp": {
"otp_ref_id": "0577b2ee-9314-4383-b0cd-b2a23a9e91d0",
"type": "LOGIN",
"expires_at": 1623650989,
"retry_remaining": 2,
"cooldown_period": 120,
"length": 25,
"reff_type": "LINK"
}
}
}
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#46 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AR42Z75VH4EOH6ZQLU7DBC3TSWJM7ANCNFSM43EORJ5A>
.
|
Beta Was this translation helpful? Give feedback.
-
kalo login di device baru, akan dapet link, link itu dibuka yang ada app ovo nya. |
Beta Was this translation helpful? Give feedback.
-
Barusan coba step 4 dengan password yg sama seperti contoh di atas dapat respon begini { sepertinya password dibentuk salah satu komponennya dari PIN. |
Beta Was this translation helpful? Give feedback.
-
udah bisa tapi stuck di step 4. |
Beta Was this translation helpful? Give feedback.
-
Ada update terbaru tentang ini? Gw ada ide supaya ga terlalu banyak reverse + implementasi bisa lihat2 di sini |
Beta Was this translation helpful? Give feedback.
-
Invalid Decrypted String / PIN payload validation failedUntuk yg stuck di step 4 dan mengalami error sperti diatas, error tsb terjadi karna parameter value pada key password tidak valid. Parameter tsb seharusnya adalah string payload yang di enkripsi menggunakan public key yang di dapatkan dari user/public_keys, lalu di encoding menggunakan base64. Flow lengkapnya dibawah ini:
|
Beta Was this translation helpful? Give feedback.
-
+"response_message": "Anda Tidak Memiliki Akses" |
Beta Was this translation helpful? Give feedback.
-
Punten, apakah di sini ada yang mengalami hal yang sama, untuk endpoint get list mutasi (wallet/v2/transaction) mendapatkan return error seperti ini { |
Beta Was this translation helpful? Give feedback.
Invalid Decrypted String / PIN payload validation failed
Untuk yg stuck di step 4 dan mengalami error sperti diatas, error tsb terjadi karna parameter value pada key password tidak valid.
Parameter tsb seharusnya adalah string payload yang di enkripsi menggunakan public key yang di dapatkan dari user/public_keys, lalu di encoding menggunakan base64.
Flow lengkapnya dibawah ini: