Git Product home page Git Product logo

hawkc's People

Contributors

algermissen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

linkypi jprausch

hawkc's Issues

How to deal with escaped characters in extension data?

It is not yet clear to me, how to treat escaped chars (e.g. ") in the ext-parameter. The original Hawk implementation seems to remove the escapes before calculating the signature.

However, removing them would require a string copy and thus allocation - this is something I want to avoid as much as possible in the C version in Hawk.

Enforce call sequence of header construction functions.

Creating a header value currently requires to call length calculation function first but it is not enforced. Not calling the function will lead to failure.

Enforce correct call sequence through internal state checking.

Add support for 'error' in WWW-Authenticate

For Oz-like use cases, it would be nice to have a header parameter that told the client what kind of error lead to the 401. One case would be expired ticket.

Needs investigation, because a

4xx Credentials expired would also be a good fit.

Base string buffer fix in hawkc_validate_hmac

hawkc_validate_hmac in common.c contains a 1k buffer for the base string that is not yet neither dynamic nor size-checked.

Suggested fix: use static default buffer of reasonable size, check size and use dynamic allocation if necessary.

Add check for buffer size to hawkc_ttoa()

Add a size check to prevent from writing past the buffer end.

Not a problem now as I use buffers larger than what a UNIX time can be - but to be save here would be nicer.

Add SNTP support

Hawk benefits from client and server setting their clock via SNTP.

Implement body hash

Hawk includes the ability to add a hash of the message body to the Authorization header. This has not yet been implemented in Hawkc.

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.