GithubHelp home page GithubHelp logo

acquia / http-hmac-go Goto Github PK

View Code? Open in Web Editor NEW
12.0 18.0 10.0 87 KB

An implementation of the HTTP HMAC Spec in Golang.

Home Page: https://github.com/acquia/http-hmac-spec

License: MIT License

Go 98.94% Shell 0.56% Makefile 0.50%

http-hmac-go's Introduction

HTTP HMAC Signer for Go

Build Status GoDoc

An implementation of the HTTP HMAC Spec in Golang.

Run tests

To run the test cases use the make command make test

Run code coverage

To get the code coverage use the make command make coverage

http-hmac-go's People

Contributors

azharulacquia avatar baliame avatar cpliakas avatar itafroma avatar kevinhankens avatar nickveenhof avatar svolpe43 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

http-hmac-go's Issues

Reduce verbosity in search.go

Lots of debug stuff logging.

2016/06/01 19:07:03 search.go:116: acquia_solr_time: 1464822423
2016/06/01 19:07:03 search.go:116: acquia_solr_nonce: ABCDEFGHIJKLMNOPQRSTUVWX
2016/06/01 19:07:03 search.go:116: acquia_solr_hmac: b0f2fac31d1324d44b9927357d2881197165db9f
/solr/DEVY-83854.prod.volpe/admin/ping?41fe27db16274556339a06d80bdf217eba0ebaad2016/06/01 19:07:03 search.go:168: Path and Query: /solr/DEVY-83854.prod.volpe/admin/ping?S: 41fe27db16274556339a06d80bdf217eba0ebaad
2016/06/01 19:07:03 http: proxy error: dial tcp: lookup tcp/: nodename nor servname provided, or not known
2016/06/01 19:07:03 search.go:116: acquia_solr_time: 1464822423
2016/06/01 19:07:03 search.go:116: acquia_solr_nonce: ABCDEFGHIJKLMNOPQRSTUVWX
2016/06/01 19:07:03 search.go:116: acquia_solr_hmac: b0f2fac31d1324d44b9927357d2881197165db9f

Do not add the X-Forwarded-Port if this wasn't present in the signature, eg port 443 and port 80

We are in a limbo state when the request went to https://domain and the library receives the X-Forwarded-Port for port 443. It will add https://domain:443 to the signature and the signatures will not match. Only in cases where the port was explicitly added we should add it to the signature. I dont know how we can check this yet. My suggestion perhaps is to accept both hashes or think really hard if there is no other way we can identify this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.