iOS UAF Conformance Tool UAF_OPERATION_RESULT JSON...

351 views
Skip to first unread message

Jeff Cesnik

unread,
May 16, 2016, 10:57:28 PM5/16/16
to fido...@fidoalliance.org

Hello,

 

Does anyone have an example of a well-formed, passing JSON response (from UAF client back to the iOS Conformance App), prior to encryption?  I am trying to figure out why my UAF client response JSON message is failing with the iOS conformance app, while our raw uafProtocolMessage passes the FIDO UAF validation suite.

 

 

UAF_OPERATION to client (as parsed by iOS):

 

{
  "message" : "{\n  \"uafProtocolMessage\" : \"[{\\\"username\\\": \\\"fido\\\", \\\"header\\\": {\\\"upv\\\": {\\\"major\\\": 1, \\\"minor\\\": 0}, \\\"appID\\\": \\\"\\\", \\\"serverData\\\": \\\"eyJ0aW1lc3RhbXAiOiAxNDYzNDUyODcxLjg4NjU1OSwgImNoYWxsZW5nZSI6ICIyUU5XcjVsdzRKdGUwdnpfblRJZGN0a3VoZC1xel9mb3lyQlpSUm5XIn0=\\\", \\\"op\\\": \\\"Reg\\\"}, \\\"challenge\\\": \\\"MlFOV3I1bHc0SnRlMHZ6X25USWRjdGt1aGQtcXpfZm95ckJaUlJuVw\\\", \\\"policy\\\": {\\\"accepted\\\": [[{\\\"aaid\\\": [\\\"0039#0001\\\"]}]], \\\"disallowed\\\": [{\\\"aaid\\\": [\\\"ABCd#ABCD\\\"], \\\"keyIDs\\\": [\\\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\\\"]}]}}]\"\n}",
  "channelBindings" : "{}"
}

 

UAF_OPERATION_RESULT from our client (prior to encryption):

 

{"message":"{\"uafProtocolMessage\":\"[{\\\"fcParams\\\":\\\"eyJhcHBJRCI6ImlvczpidW5kbGUtaWQ6b3JnLmZpZG9hbGxpYW5jZS5pb3MuY29uZm9ybWFuY2UiLCJjaGFubmVsQmluZGluZyI6e30sImZhY2V0SUQiOiJpb3M6YnVuZGxlLWlkOm9yZy5maWRvYWxsaWFuY2UuaW9zLmNvbmZvcm1hbmNlIiwiY2hhbGxlbmdlIjoi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jVsdzRKdGUwdnpfblRJZGN0a3VoZC1xel9mb3lyQlpSUm5XIn0=\\\",\\\"op\\\":\\\"Reg\\\",\\\"appID\\\":\\\"ios:bundle-id:org.fidoalliance.ios.conformance\\\",\\\"upv\\\":{\\\"major\\\":1,\\\"minor\\\":0}}}]\"}","errorCode":0}

Thanks,

-Jeff Cesnik

J Cesnik

unread,
May 16, 2016, 11:42:57 PM5/16/16
to FIDO Dev (fido-dev)
Nevermind - AppID mismatch.

Hong sunggon

unread,
Aug 9, 2016, 9:44:55 PM8/9/16
to FIDO Dev (fido-dev)
did you solve the problem? 

would you share the JSON message For UAF_OPERATION_RESULT ? 

I have same problem. T_T 

timmo miao

unread,
Mar 14, 2017, 2:26:43 AM3/14/17
to FIDO Dev (fido-dev)
FIDO UAF Conformacer 测试用例 Reg   1-f-1-1 ,如果测试通过不应该只传{"errorCode":6} (经过A128CBC-HS256加密处理后)就可以了么?为什么我总提示 HMAC does not match ?我反复的看了我的加密算法,感觉没什么问题啊,和这个算法的文档上的测试用例对比都是对的?有遇到过相同问题的么?

FIDO UAF Conformacer test cases Reg 1- f - 1-1, if the test through should not only pass {"errorCode":6} (after dealing with the A128CBC - HS256 encryption) is ok?Why do I always prompt HMAC does not match?I repeatedly watched my encryption algorithms, feel no problem, and the algorithm of test case contrast on the document is right?Have encountered the same problem?

在 2016年8月10日星期三 UTC+8上午9:44:55,Hong sunggon写道:

timmo miao

unread,
Mar 14, 2017, 2:29:10 AM3/14/17
to FIDO Dev (fido-dev)
你这个问题是如何解决的?我也遇到了相同的问题。并且我只返回{"errorCode":6}都不行,总提示:HMAC does not match

How do you solve this problem?I also met the same problem.And I just come back {"errorCode":6} can't, always prompt: HMAC does not match


在 2016年8月10日星期三 UTC+8上午9:44:55,Hong sunggon写道:
did you solve the problem? 

timmo miao

unread,
Mar 14, 2017, 2:31:13 AM3/14/17
to FIDO Dev (fido-dev), jce...@clutch-inc.com
What need to preach appID value?

在 2016年5月17日星期二 UTC+8上午10:57:28,Jeff Cesnik写道:
Reply all
Reply to author
Forward
Message has been deleted
0 new messages