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

Validation email with fully formed link to POST the code & email address? #1

Open
dan-burt opened this issue Jun 12, 2021 · 4 comments

Comments

@dan-burt
Copy link

The default email template includes some text to the user, with a URL link to nopass.me.

I am authenticating users on a PHP-based web app / site. My current flow is using a 2nd form which the user manually enters the code received. Once submitted, a 3rd page completes the validation stage of authentication.

Could this be formatted as a simple link to click, that would include the required parameters (email & code)? Ideally as POST.

@frsechet
Copy link
Member

You can already do that as you can control the content of the email that is sent to the user. You can for example in this email provide a link that's formatted as you want, for example with your parameters as query params.

However since it's a link for the user to click on, it will never be a POST request, always a GET request.

@dan-burt
Copy link
Author

dan-burt commented Jun 12, 2021

Thanks for the prompt response. It wasn't an issue, more a question / suggestion.

Also thanks for confirming it will be a GET request. Does this invalidate the authentication process, in your opinion? As the parameters will be visible in the headers, rather than embedded in the data packet.

@frsechet
Copy link
Member

If it's over http, neither the body nor the query params are secure (you can't have a body in GET requests). If it's over https, both are secure. It doesn't matter how you decide to do it. Query params are fine 😊

@frsechet
Copy link
Member

frsechet commented Jun 12, 2021

FYI, link to the docs: https://www.nopass.me/docs

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

2 participants