Skip to content

Conversation

@SegiNyn
Copy link
Contributor

@SegiNyn SegiNyn commented Jul 2, 2025

This PR is to allow scanning custom plugin qr-codes using the check-in app.
Associated PR: indico/indico-checkin-pwa#87

@SegiNyn SegiNyn force-pushed the custom-ticket-qr-code branch from 6d75b42 to af59c06 Compare July 2, 2025 16:36
@SegiNyn SegiNyn force-pushed the custom-ticket-qr-code branch from efcc560 to 29945c2 Compare July 3, 2025 09:41
@SegiNyn SegiNyn marked this pull request as ready for review July 3, 2025 09:48
@SegiNyn SegiNyn requested a review from ThiefMaster July 3, 2025 10:12
url = config.BASE_URL.removeprefix('https://')
qr_code_version = 2
result = {
'i': [qr_code_version, url, _base64_encode_uuid(reg.ticket_uuid)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not support handling of custom QR codes tied to accompanying persons... I think the best way to implement this would be to make lookup_registration return not just a registration but also an accompanying person ID (ie a registration, accompanying_id_or_none tuple)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't include the accompanying person data because I didn't see it being used in the check-in app, https://github.com/indico/indico-checkin-pwa/blob/40e8d3d94f17c0537b4659be9143cac02df5b3cd/src/pages/Auth/utils.ts#L87
Scanning the accompanying person ticket uses the same check-in secret as the registration on the check-in app, unless I missed seeing where it's being used.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, you're right. We include their ID in the Indico QR code, but apparently we don't do anything special with it in the app.

@ThiefMaster ThiefMaster force-pushed the custom-ticket-qr-code branch from d953811 to 7f2c94c Compare September 3, 2025 14:00
@ThiefMaster ThiefMaster force-pushed the custom-ticket-qr-code branch from 7f2c94c to 44b12e2 Compare September 4, 2025 12:52
@ThiefMaster ThiefMaster added this to the v3.3 milestone Sep 4, 2025
@ThiefMaster ThiefMaster merged commit 13c3c10 into indico:master Sep 4, 2025
10 checks passed
@ThiefMaster ThiefMaster deleted the custom-ticket-qr-code branch September 4, 2025 14:13
SegiNyn added a commit to UNOG-Indico/indico-core that referenced this pull request Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants