-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
Optionally dizactivate payment URL upon order fulfillment #2568
Comments
@TanaseTeofil Yes, I am down for that. Can you maybe describe it in more detail how you would achieve this? |
@dpfaffenbauer I have talked a bit about this issue with @yariksheptykin and we reached the conclusion that we could maybe use JWT token generation since it provides a lot of features that we would need such as expiration date for the access tokens (configurable, but i think 15 minutes should be enough. Remains to be discussed). Initially we would just need the expiration date aspect of this but we could also use their encryption to further increase security for tokens on orders. We can create a new token generator such as the UniqueTokenGenerator CoreShop already provides and add it as an alternative to the OrderFactory so that we can chose between the two through a config. Give us a couple of days to whip up a Pull Request with a possible solution for this feature. |
@TanaseTeofil lovely. Can't wait for your PR idea. |
-1 for JWT. |
@solverat could you write a couple of words why you don't think JWT is not a good idea? |
@yariksheptykin I think JWT is completely inflated for this task.
|
@dpfaffenbauer I have created a PR for this. Feel free to take a look at our current plan and give your thoughts on it. |
Hello @dpfaffenbauer!
We have a proposal for a new feature that could be added to CoreShop and would probably improve security for many projects.
In CoreShop by Design you can access both the pay and thank-you pages for an unlimited period of time with a valid token.
This isn't particularly great because you can probably steal personal data by guessing the token. The more tokens there are in circulation, the easier it is to guess any of them. In practical terms, this isn't necessarily a problem with a long token.
Nevertheless, there is no reason why you should still see a Thank You page from an order after a year.
Would it be possible for you to solve this through time-limited or disposable tokens. This doesn't have to be the default but you could make it an option avaiable in CoreShop if you also believe it to be a good idea.
What are your thoughts on this?
The text was updated successfully, but these errors were encountered: