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

Improved Debug Logging for HTTP Bridge #241

Open
VisiBoost opened this issue Feb 10, 2015 · 4 comments
Open

Improved Debug Logging for HTTP Bridge #241

VisiBoost opened this issue Feb 10, 2015 · 4 comments

Comments

@VisiBoost
Copy link

VisiBoost commented Feb 10, 2015

I'm trying to use signed requests for HTTP Pusher Service from my php application (using an asynchronous curl call).
Despite many tries I always have a "401 / invalid request signature" message into crossbar console.
I have already see that php and python default functions parameters where not the same:

  • Python HMAC[SHA256] implementation using digest() return binary digest while Php hash_hmac method return hexdecimal value => Fixed using correct php parameters.
  • Php base64_encode method doesn't URL encode result while the base64.urlsafe_b64encode method used into crossbar does => Fixed using url_encode.

(Note that those details could be added to Documentation: https://github.com/crossbario/crossbar/wiki/HTTP-Pusher-Service)

Even correcting that, I always have this error; I think that's linked to the JSON body content but is there a method to debug the signature process and check differences between data sent and data used on crossbar side to coompute signature ?
For example, is it possible to add logs when signature checking fail and debugging active ?

Thanks for your help.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@peelandsee
Copy link

i'm also interested in a php snippet to sign my request!
did you find a solution @VisiBoost ?

@VisiBoost
Copy link
Author

No, I left this signing fact on the side for the moment and securize access using IP adress check to allow Push Request only from my webserver.

@peelandsee
Copy link

@oberstet oberstet added this to the 0.12.0 milestone Aug 24, 2015
@oberstet oberstet changed the title Signing for HTTP Pusher Service : Debugging logs Improved Debug Logging for HTTP Bridge Aug 30, 2015
@Arttii
Copy link

Arttii commented Oct 1, 2015

So I am running into this issue as well. Sometimes the request works and sometimes it does not. Its quite confusing with no apparent errors on crossbar side.

@oberstet oberstet removed this from the 0.12.0 milestone Jan 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants