Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bjrmatos/visa-passport-extend
[DEPRECATED] Abstract and error classes for implementing visa-passport's backend API.
https://github.com/bjrmatos/visa-passport-extend
Last synced: about 1 month ago
JSON representation
[DEPRECATED] Abstract and error classes for implementing visa-passport's backend API.
- Host: GitHub
- URL: https://github.com/bjrmatos/visa-passport-extend
- Owner: bjrmatos
- Created: 2014-07-30T23:42:16.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-10T18:40:48.000Z (about 8 years ago)
- Last Synced: 2024-11-07T15:18:12.679Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# visa-passport-extend
Abstract and error classes for implementing [visa-passport](https://github.com/borismcr9/visa-passport)'s backend API.
[![Dependencies](https://david-dm.org/borismcr9/visa-passport-extend.png)](https://david-dm.org/borismcr9/visa-passport-extend)
## Install
Install the module with: `npm install visa-passport-extend`
## Usage
This module exports an abstract `Backend` class and error classes (`NotOverrideError`, `InvalidArgumentsError`, `RuleExistsError`).
The `Backend` class is intended to be subclassed when implementing concrete backend class. Once implemented, such classes can be used by applications that utilize visa-passport middleware for authorization.
#### Subclass Backend
```js
var util = require('util'),
Backend = require('visa-passport-extend');function MyAwesomeBackend(...) {
Backend.call(this);
}util.inherits(MyAwesomeBackend, Backend);
```## License
[MIT](http://opensource.org/licenses/MIT)
Copyright (c) 2014 BJR Matos <[https://github.com/borismcr9/](https://github.com/borismcr9/)>
Licensed under the MIT license.