Last active
September 28, 2019 12:28
-
-
Save gebogebogebo/b150aab8b80a4966a07ae472cbf7aa75 to your computer and use it in GitHub Desktop.
CTAP2 お勉強メモ#6 - Use Case ref: https://qiita.com/gebo/items/cfc6ceb1c7f9aa5fdad6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
1: {"id": h'5674B3BE66FD4A14485AAE76648D0080', "type": "public-key"}, | |
2: h'0FA85A9CAE4160AFBCC898FC3A43010427EA3C6EC6CC07AA64424B31634C002E0400000071', | |
3: h'3045022100AB1FB333AA1F9EE5462F08CEE64112CD701FA6416AF4278F17D822812D3C39210220375DB0A46EFCB6E938BECB6F7E66AB74254786B65A6C33F167B359578FAFEFFC', | |
// user.idしか取れない | |
4: {"id": h'6765626F696400'}} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ◆authenticatorGetAssertion(0x02) コマンド | |
// allowListは指定せず、uv=true | |
{ | |
1: "gebo7.com", | |
2: h'6B14FC9289B0DD6C6DA60EFEF105C2C5E7A22F7DC855D8207C862002372C1940', | |
5: {"up": false, "uv": true}, 6: h'BD9E1897A09F329D871DFA864CCF6C0F', | |
7: 1 | |
} | |
// Response(Assertion) | |
{ | |
1: {"id": h'CA260112057A29ECE17D35C1EB5E2582', "type": "public-key"}, | |
2: h'BE17B417F210B91E276D243C3106CE19EF65F194BFB88C370BADC7D6A2B6CFA9040000006E', | |
3: h'3045022100DBA12EA384F9CDA425780006B2E86A5413541A3891D50404D139E4F6B32C9B93022033E61CB120EF88380EA1FF9183763766CA666819836E9561C8728255C1BF2D7F', | |
// user_gebo2 | |
4: {"id": h'31323334353637383900', "name": "user_gebo2", "displayName": "user_DISP_gebo2"}, | |
// ★0x05:numberOfCredentials これがあると、Assertionがまだある、という意味 | |
5: 2 | |
} | |
// authenticatorGetNextAssertion (0x08)コマンド | |
// パラメタ無し | |
// Response(Next Assertion) | |
{ | |
1: {"id": h'BBF556121B298B05DC4D1312C8A21D46', "type": "public-key"}, | |
2: h'BE17B417F210B91E276D243C3106CE19EF65F194BFB88C370BADC7D6A2B6CFA9040000006F', | |
3: h'304402201F6FBAA0ACA84F7F239B8F10D050495ECFF056DD9BF7E1A8331F6CB1ABB69EA2022028FA65C5D908287AF2E4205E25198801D51A1DBC1840D5CCD7CE8D5F13367098', | |
// user_gebo | |
4: {"id": h'313233343536373800', "name": "user_gebo", "displayName": "user_DISP_gebo"} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
1: {"id": h'BBF556121B298B05DC4D1312C8A21D46', "type": "public-key"}, | |
2: h'BE17B417F210B91E276D243C3106CE19EF65F194BFB88C370BADC7D6A2B6CFA9040000006F', | |
3: h'304402201F6FBAA0ACA84F7F239B8F10D050495ECFF056DD9BF7E1A8331F6CB1ABB69EA2022028FA65C5D908287AF2E4205E25198801D51A1DBC1840D5CCD7CE8D5F13367098', | |
4: {"id": h'313233343536373800', "name": "user_gebo", "displayName": "user_DISP_gebo"} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment