Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zerocowl/oauth-moleculer
OAuth2 Server + MoleculerJS
https://github.com/zerocowl/oauth-moleculer
Last synced: 2 months ago
JSON representation
OAuth2 Server + MoleculerJS
- Host: GitHub
- URL: https://github.com/zerocowl/oauth-moleculer
- Owner: zerocowl
- License: mit
- Created: 2018-11-06T19:22:39.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-17T13:51:06.000Z (over 5 years ago)
- Last Synced: 2024-08-03T02:05:11.363Z (5 months ago)
- Language: JavaScript
- Size: 36.1 KB
- Stars: 23
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-moleculer - oauth-moleculer - [OAuth2](https://oauth.net/2/) Service (Services / Security, Authentication and Authorization)
README
## OAuth2 Server + MoleculerJS
This project is an example of how to implement OAuth2 Server with MoleculerJS, I pretend to convert this into a module of MoleculerJS in the future.
The main project’s file is the `oauth_server.mixin.js`, I have the methods of OAuth Server into it and I've implemented the `authenticate` which will be inserted into the API Gateway and will be basically the authentication method, after that I can protect, or not, an API endpoint using the option `authorization`.
## Getting started
```
npm run clear
npm run seeders
```
_Import the collection for your Postman and enjoy_## References:
https://github.com/dsquier/oauth2-server-php-mysql
https://github.com/manjeshpv/node-oauth2-server-implementation
https://moleculer.services/docs/0.13/moleculer-web.html#Authentication