Weba 身分驗證 API.md
48 additions, 1 deletions
| ... | ... | @@ -14,7 +14,7 @@ |
| 14 | - curl GET {EndPoint}/mds/mvs/member/identities/validation?identityTypes=CUB,ORCA | |
| 14 | + curl GET {EndPoint}/mds/mvs/member/identities/weba/validation?identityTypes=CUB,ORCA | |
| 15 | +| 2 | webaToken | String | false | WEBA Token | 身份驗證全數通過後才回傳 | | |
| 16 | +驗證通過 | |
| 17 | + | |
| 15 | 18 | "success": true, |
| 16 | 19 | "errorCode": null, |
| 17 | 20 | "message": null, |
| 18 | 21 | "values": { |
| 22 | + "webaToken": "abcd123456", | |
| 23 | + "allChecksPassed": true, | |
| 24 | + "results": [ | |
| 25 | + { | |
| 26 | + "type": "ORCA", | |
| 27 | + "passed": true, | |
| 28 | + "message": null | |
| 29 | + }, | |
| 30 | + { | |
| 31 | + "type": "CUB", | |
| 32 | + "passed": true, | |
| 33 | + "message": null | |
| 34 | + } | |
| 35 | + ] | |
| 36 | + } | |
| 37 | +} | |
| 38 | +``` | |
| 39 | + | |
| 40 | +驗證不通過 | |
| 41 | + | |
| 42 | +```json | |
| 43 | +{ | |
| 44 | + "success": true, | |
| 45 | + "errorCode": null, | |
| 46 | + "message": null, | |
| 47 | + "values": { | |
| 48 | + "webaToken": null, | |
| 19 | 49 | "allChecksPassed": false, |
| 20 | 50 | "results": [ |
| 21 | 51 | { |
| 22 | 52 | } |
| 53 | + | |
| 54 | +缺少驗證資訊 or 其他錯誤情境 | |
| 55 | + | |
| 56 | +```cs | |
| 57 | +{ | |
| 58 | + "success": false, | |
| 59 | + "errorCode": {error_code}, | |
| 60 | + "message": {error_message}, | |
| 61 | + "values": null | |
| 62 | +} | |
| 63 | +``` | |
| 64 | + | |
| 65 | +| B2E內部錯誤訊息 | B2E錯誤代碼 | App錯誤訊息 | App錯誤代碼 | | |
| 66 | +| ---| ---| ---| --- | | |
| 67 | +| 缺少驗證參數 | | | MVSXXXX | | |
| 68 | +| WEBA api請求失敗 | | | | | |
| 69 | +| | | | | |