https://github.com/bloggify/bloggify-passport
🛂 Authentification for Bloggify made simple, using Passport.
https://github.com/bloggify/bloggify-passport
authentication bloggify hacktoberfest login-system passport
Last synced: 28 days ago
JSON representation
🛂 Authentification for Bloggify made simple, using Passport.
- Host: GitHub
- URL: https://github.com/bloggify/bloggify-passport
- Owner: Bloggify
- License: mit
- Created: 2017-06-30T09:27:11.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-05-04T13:18:55.000Z (about 3 years ago)
- Last Synced: 2025-02-03T04:49:31.371Z (over 1 year ago)
- Topics: authentication, bloggify, hacktoberfest, login-system, passport
- Language: JavaScript
- Size: 33.2 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# bloggify-passport
[](https://www.npmjs.com/package/bloggify-passport) [](https://www.npmjs.com/package/bloggify-passport)
> Passport.js authentication for Bloggify.
## :cloud: Installation
```sh
# Using npm
npm install --save bloggify-passport
# Using yarn
yarn add bloggify-passport
```
## :clipboard: Example
```js
const passport = ["passport", {
login_url: "/user/signin",
verify_callback (email, password, cb) {
if (email === "foo@bar.com" && password === "42") {
return cb(null, { name: "foo" })
}
cb(new Error("Invalid username or password."))
}
}]
```
## :question: Get Help
There are few ways to get help:
1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long you add a link to your Stack Overflow question.
2. For bug reports and feature requests, open issues. :bug:
## :memo: Documentation
### Plugin Configuration
- **Object** `config`:
- `strategy` (String): The PassportJS strategy name (default: "local").
- `auth_options` (Object): Contains the authentication options.
- `strategy_options` (Object): Contains the strategy options.
- `success_url` (String): The access URL.
- `login_url` (String): The login URL.
- `verify_callback`(Function): The PassportJS callback function.
- `failure_url` (String): The login error URL.
- `fresh_user` (String): Whether to reload the user data on each request (default: `false`)
The model objects can be accessed by requiring the module or accessing the `Bloggify.models` object.
## :yum: How to contribute
Have an idea? Found a bug? See [how to contribute][contributing].
## :dizzy: Where is this library used?
If you are using this library in one of your projects, add it in this list. :sparkles:
- `bloggify-user-auth`
## :scroll: License
[MIT][license] © [Bloggify][website]
[license]: /LICENSE
[website]: https://bloggify.org
[contributing]: /CONTRIBUTING.md
[docs]: /DOCUMENTATION.md