Reputation: 303
Scenario:
I am developing an API for a booking system, where user (without registration) gets a quote (with price) for a service, then later uses that quote to place a booking with additional information.
Question
How do I verify a quote generated by a request (eg, QT001) won't be used by anyone else request. For example, anyone can randomly guess a quote id and request a booking for that. How do I verfiy the second request, that will be for booking, is from the same user who sent the request for quote.
Sorry if the context isn't clear enough, since I'm new to the RESTful API world.
Upvotes: 0
Views: 461
Reputation: 535
If you are OK with cookies, then:
Upvotes: 1