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

Encrypting query pramaters #1

Open
Shruti3004 opened this issue Feb 4, 2022 · 0 comments
Open

Encrypting query pramaters #1

Shruti3004 opened this issue Feb 4, 2022 · 0 comments

Comments

@Shruti3004
Copy link
Member

Description

Encrypting query pramaters before setting it to the meta on each rendering of the form.

https://github.com/Samagra-Development/enketo/blob/main/enketo-express/app/controllers/survey-controller.js#L189

    options.backendToken = req?.query?.token;

    res.cookie("backendToken", req?.query?.token, cookieOptions);
    res.cookie("enketoFormId", req?.query?.id, cookieOptions);

Using an encrypting library here for query params received

Shruti3004 pushed a commit that referenced this issue Jan 17, 2023
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

No branches or pull requests

1 participant