Commit 5eaaec9
authored
More extensions (#93)
1. Credential protection policy:
a) Stop exposing `ctap_types` in our API and use our own implementation
for the webauthn-layer (the CTAP layer still uses `ctap_types`)
b) Also support `enforce_policy`, which we can only do from the inside,
as we need `Ctap2GetInfoResponse` for that. Error out, if it can't be
enforced.
2. Support `credProps` extension.
a) Pretty straight forward, except that CTAP 2.0 devices are allowed to
create discoverable credentials even if they are not requested. CTAP 2.1
devices are not allowed to do that anymore. So we need
`Ctap2GetInfoResponse` once again to decide
3. Switch from LargeBlobKeys extension to LargeBlob extension.
a) LargeBlob extension has "Preferred"-mode as well, so we need
`Ctap2GetInfoResponse` again for deciding, if we can request it or not.
b) LargeBlobKey-requests can easily be mapped into LargeBlob requests,
by simply using LargeBlob `support = "required"`, so I'm not supporting
both in the API.
c) `GetAssertionLargeBlobExtension::Write()` is not yet supported, as we
need the corresponding CTAP commands to store large blobs for that,
which we don't have yet.1 parent 24eb471 commit 5eaaec9
File tree
7 files changed
+236
-48
lines changed- libwebauthn
- examples
- src
- ops
- proto/ctap2/model
7 files changed
+236
-48
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
158 | 157 | | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
15 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
88 | 91 | | |
89 | | - | |
| 92 | + | |
90 | 93 | | |
91 | 94 | | |
| 95 | + | |
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
| |||
148 | 152 | | |
149 | 153 | | |
150 | 154 | | |
| 155 | + | |
151 | 156 | | |
152 | 157 | | |
153 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | 88 | | |
| 89 | + | |
93 | 90 | | |
94 | 91 | | |
95 | 92 | | |
| |||
429 | 426 | | |
430 | 427 | | |
431 | 428 | | |
432 | | - | |
433 | 429 | | |
| 430 | + | |
434 | 431 | | |
435 | 432 | | |
436 | 433 | | |
| |||
471 | 468 | | |
472 | 469 | | |
473 | 470 | | |
474 | | - | |
475 | 471 | | |
| 472 | + | |
476 | 473 | | |
477 | 474 | | |
478 | 475 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
116 | 171 | | |
117 | 172 | | |
118 | | - | |
| 173 | + | |
| 174 | + | |
119 | 175 | | |
120 | | - | |
| 176 | + | |
121 | 177 | | |
122 | 178 | | |
123 | 179 | | |
| |||
130 | 186 | | |
131 | 187 | | |
132 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
133 | 192 | | |
134 | 193 | | |
135 | 194 | | |
| |||
190 | 249 | | |
191 | 250 | | |
192 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
193 | 261 | | |
194 | 262 | | |
195 | 263 | | |
196 | 264 | | |
| 265 | + | |
197 | 266 | | |
198 | 267 | | |
199 | 268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
144 | 166 | | |
145 | 167 | | |
146 | | - | |
147 | | - | |
| 168 | + | |
| 169 | + | |
148 | 170 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
153 | 175 | | |
154 | 176 | | |
155 | 177 | | |
| |||
169 | 191 | | |
170 | 192 | | |
171 | 193 | | |
| 194 | + | |
| 195 | + | |
172 | 196 | | |
173 | 197 | | |
174 | 198 | | |
| |||
179 | 203 | | |
180 | 204 | | |
181 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
182 | 211 | | |
183 | 212 | | |
184 | 213 | | |
| |||
0 commit comments