-
Notifications
You must be signed in to change notification settings - Fork 33
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
Determining if consumer_key/secret exist #18
Comments
Sorry Mike, I've read this several times and I'm not sure what the question is or what do you want me to do. Remember that the hook doesn't do any connection handling, your binding should take care of this. The hook is coded for let you sign your requests with OAuth1.0. It only intercepts your requests and "signs" them. Anything beyond this, is something that lives in a separate wrapper on top. Does this seem reasonable? BTW did you get to test Cheers, |
No. I've been busy and haven't got to test. As far as the issue. I just wanted a way to determine of OAuthHook.consumer_key and OAuthHook.consumer_secret were set. Sent from my iPhone On Mar 11, 2012, at 1:45 PM, Miguel Araujoreply@reply.github.com wrote:
|
If OAuthHook.consumer_key isn't set. Currently, it won't return None Sent from my iPhone On Mar 11, 2012, at 1:45 PM, Miguel Araujoreply@reply.github.com wrote:
|
Hi Mike, I've set Cheers, |
Awesome, thanks! |
No problem, thank you! |
Version 0.4.0 has been released, it works well with requests 0.12.1 or higher. I'm closing this issue. Cheers |
Say I set
It'd be nice if there was a way to determine if consumer_key and consumer_secret were set.
In my case, I want to use a request.session with a hook-pre_request of OAuthHook() using the key/secret if they are set AND if the oauth_token/secret is set when someone initializes my class, I want to then have request.session use the hook-pre_request also passing the oauth_token/secret
Let me know if you need me to elaborate more?
Something like:
The text was updated successfully, but these errors were encountered: