1.1.0 • Published 7 years ago

pwdauth v1.1.0

Weekly downloads
1
License
Apache
Repository
github
Last release
7 years ago

Password authentication and authorization

Simple implementation of a custom password-based auth for web applications.

Can be used with of without server-side sessions.

Uses sha256 hash by default, different hash function (bcrypt etc) may be plugged in.

See direct usage example: test, and a full "server + client" example: auth.

License information

This project is released under the Apache License 2.0.

API

  1. Client side:

    • createPasswordHash = function(password: String, userId: String)

    • createRequest = function(path: String, userId: String, passwordHash: String, timestamp: String)

  2. Server side:

    • authorize = function(loadUser: Function, token: String)

    • authenticate = function(loadUser: Function, createRequest: Function, createToken: Function, request: Object)

Changelog

2018-03-04

  • initial public version
1.1.0

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago