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

Auth timestamp as signature expiry? #8

Open
eriklott opened this issue Jun 7, 2013 · 1 comment
Open

Auth timestamp as signature expiry? #8

eriklott opened this issue Jun 7, 2013 · 1 comment

Comments

@eriklott
Copy link

eriklott commented Jun 7, 2013

I enjoy this little gem. We use it in projects from time to time when we need signed requests. Thanks for maintaining it.

In our current project, we're using the signature gem to secure a simple api. We provide clients with secure urls (signed with signature gem) which they use to view private resources, valid for a certain amount of time. Problem is, some urls should be valid for 1 hour, and some for 1 week. Because the signature expiry (timestamp_grace) is controlled on the receiving end of the request (during authentication), I don't think the gem will work for us in its current state (we'll likely tweak it).

Have you considered using your auth_timestamp param as the signature expiry, rather than a simple timestamp?

@mmzoo
Copy link

mmzoo commented Aug 12, 2014

Can you not just send in an additional parameter to indicate when the URL should be considered expired?

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