Commit 8af8b08
committed
feat(badges): augment validateBadge payload for attendee-networking connect resolve
Extend GET /summits/{id}/badge/{badge}/validate so attendee-networking-api can
resolve a scanned badge to a connection identity (SDS D26 / ftn-docsnsklz #40):
- add ticket.owner.id (keys the member-less pre-account request, D27)
- expand the nested ticket.owner.member {id, first_name, last_name, pic}
(member.id is the D15 identity; member is absent for member-less attendees)
No auth change is needed: the auth.user middleware passes service tokens
through (required-groups gate only user tokens), so a client-credentials
service account holding the read scope already reaches the route.
Tests (OAuth2SummitApiTest): the member case asserts the expanded member
object; the member-less case (D27) asserts the member object is absent while
attendee id + email are present. InsertSummitTestData gains a member-less
attendee with a badge to cover it.1 parent 988a6d3 commit 8af8b08
4 files changed
Lines changed: 79 additions & 13 deletions
File tree
- .github/workflows
- app/Http/Controllers/Apis/Protected/Summit
- tests
- oauth2
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2554 | 2554 | | |
2555 | 2555 | | |
2556 | 2556 | | |
2557 | | - | |
| 2557 | + | |
2558 | 2558 | | |
2559 | 2559 | | |
2560 | 2560 | | |
2561 | 2561 | | |
2562 | 2562 | | |
2563 | 2563 | | |
2564 | 2564 | | |
| 2565 | + | |
2565 | 2566 | | |
2566 | 2567 | | |
2567 | 2568 | | |
2568 | 2569 | | |
| 2570 | + | |
| 2571 | + | |
| 2572 | + | |
| 2573 | + | |
2569 | 2574 | | |
2570 | 2575 | | |
2571 | 2576 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
533 | 564 | | |
534 | 565 | | |
535 | 566 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1197 | 1197 | | |
1198 | 1198 | | |
1199 | 1199 | | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
1200 | 1205 | | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
1201 | 1227 | | |
1202 | | - | |
1203 | | - | |
1204 | | - | |
1205 | | - | |
| 1228 | + | |
1206 | 1229 | | |
1207 | | - | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
1208 | 1233 | | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
1209 | 1239 | | |
1210 | | - | |
1211 | | - | |
1212 | | - | |
| 1240 | + | |
| 1241 | + | |
1213 | 1242 | | |
1214 | 1243 | | |
1215 | 1244 | | |
| |||
1223 | 1252 | | |
1224 | 1253 | | |
1225 | 1254 | | |
1226 | | - | |
1227 | | - | |
| 1255 | + | |
1228 | 1256 | | |
| 1257 | + | |
1229 | 1258 | | |
| 1259 | + | |
1230 | 1260 | | |
0 commit comments