Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate QR code for user check-in. #3

Open
andres-valdes opened this issue Nov 19, 2018 · 1 comment
Open

Generate QR code for user check-in. #3

andres-valdes opened this issue Nov 19, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@andres-valdes
Copy link
Member

It would be really useful for potential projects and extensions to the smoothie suite if we could generate a QR code for the user (after they've confirmed their attendance).

Perhaps within the QR code we could encrypt something like:

{
    "id": 42
}

This would indicate their id within the database, this would be useful to mark them as "checked in" on the day of the event.

Perhaps we should blast this QR code with a secret, so user's can't falsify their own QR codes, and can only receive one from us. This could also serve as our tracker for meals, but that sounds like something outside of the scope of mango/peaches.

Perhaps someone should draft a proposal for a project of that nature?

@andres-valdes andres-valdes added the enhancement New feature or request label Nov 19, 2018
@SCKelemen
Copy link

You actually don't need to encrypt it. You could just hash the information, and encrypt the hash. This is how digital signatures work. If you want to have a stateless token, where access to a database is not desirable for whatever reason, you could actually use a pattern like JWTs for handling. JSON Web Tokens (JWT) define a standardized pattern for this kind of thing, and you could encode the entire JWT into the QR code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants