http-header-authorization

0.0.5 • Public • Published

http-header-authorization

A collection of functions for handling authorising requests using http headers.

Version 0.0.5

  • Added the path of the request to the request-authorized events for basic authorization.
  • Added the path of the request to the request-unauthorized events for basic authorization.
  • Added the path of the request to the request-authorized events for session authorization.
  • Added the path of the request to the request-unauthorized events for session authorization.

Version 0.0.4

  • Tidied up one of the tests to remove duplication.

Version 0.0.3

  • Added request-authorized event to session-authorization authenticate.
  • Added request-unauthorized event to session-authorization authenticate.

Version 0.0.2

  • Added session authorization that checks that req.user exists.
  • Moved authorization error out into it's own file including the handleAuthorizationError message.
  • The handleAuthorizationError response message can be overidden by setting the json property on the error object to the desired json.

Version 0.0.1

  • Added HTTP Basic Authorization.

Package Sidebar

Install

npm i http-header-authorization

Weekly Downloads

0

Version

0.0.5

License

ISC

Last publish

Collaborators

  • hqmobile