8000 seen_nonce receives sender's id by jcwilson · Pull Request #10 · kumar303/mohawk · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

seen_nonce receives sender's id #10

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

Merged
merged 1 commit into from
Jun 19, 2015
Merged

Conversation

jcwilson
Copy link
Contributor

Breaking change to reflect latest hawk.js spec.

The seen_nonce() function now receives the sender's id in order to avoid false collisions with other requests sharing the same timestamp and nonce values.

Related change in the hawk.js project: mozilla/hawk#141

This should probably engender at least a minor-version bump to indicate the api change.

@jcwilson jcwilson changed the title Breaking change to reflect latest hawk.js spec. seen_nonce receives sender's id Jun 19, 2015
Breaking change to reflect the latest hawk.js spec.
mozilla/hawk#141

This is necessary in order to avoid false collisions with other requests sharing the same timestamp and nonce values
@kumar303
Copy link
Owner

Thanks for the patch.

We could do a fancy lookup on the callable with inspect.argspec() but I'm not sure it's worth the effort. I think it's fine. I'll just add a big warning in the release notes.

If you feel like it, hawkrest will need a patch too in the nonce lookup. It hooks into Django's cache API for nonce checks. Some usage info: http://hawkrest.readthedocs.org/en/latest/usage.html#django-configuration

kumar303 added a commit that referenced this pull request Jun 19, 2015
seen_nonce receives sender's id
@kumar303 kumar303 merged commit fc6110f into kumar303:master Jun 19, 2015
@jcwilson
Copy link
Contributor Author

When making the changes for hawk.js I did a similar thing to your inspect.argspec() suggestion. Eran just had me back it out and then put in the breaking changes. I agree that the warning would be the way to go. Besides, hopefully no one is rolling library version changes to prod without testing first. :)

I'll take a look at the hawkrest project, too. Thanks!

kumar303 added a commit that referenced this pull request Jun 22, 2015
This also swaps py33 tests for py34 because, meh.

See also #10
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

Successfully merging this pull request may close these issues.

2 participants
0