https://github.com/hirsch88/auth0-mock-server
Helps us to develop locally with seeded data and keep the flow of auth0.
https://github.com/hirsch88/auth0-mock-server
auth0 mocking nodejs oauth
Last synced: 10 days ago
JSON representation
Helps us to develop locally with seeded data and keep the flow of auth0.
- Host: GitHub
- URL: https://github.com/hirsch88/auth0-mock-server
- Owner: hirsch88
- License: mit
- Created: 2017-05-02T16:47:06.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-01T05:33:07.000Z (over 7 years ago)
- Last Synced: 2025-03-28T17:11:15.574Z (28 days ago)
- Topics: auth0, mocking, nodejs, oauth
- Language: JavaScript
- Size: 12.7 KB
- Stars: 14
- Watchers: 1
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# auth0-mock-server
> This server helps you to simulate auth0 server locally. So, you are able to use the `/tokeninfo` endpoint to verify your token.
## Getting Started
### Prerequisites
* Install [Node.js](http://nodejs.org)
* on OSX use [homebrew](http://brew.sh) `brew install node`
* on Windows use [chocolatey](https://chocolatey.org/) `choco install nodejs`## Installing
* `fork` this repo
* `clone` your fork
* `npm install` to install all dependencies## Running the app
After you have installed all dependencies you can now run the app.
Run `npm start` to start a local server.
The port will be displayed to you as `http://0.0.0.0:3333` (or if you prefer IPv6, if you're using `express` server, then it's `http://[::1]:3333/`).## API Documentation
### `GET` /token/:username
Returns a token with the given user(username). This token can the be used by your application.### `POST` /tokeninfo
Returns the data of the token like the username.**Body**
```
{
"id_token": "your-token-kjasdf6ashasl..."
}
```## Related Projects
* [express-typescript-boilerplate](https://github.com/w3tecch/express-typescript-boilerplate) - Boilerplate for an restful express-apllication written in TypeScript
* [express-graphql-typescript-boilerplate](https://github.com/w3tecch/express-graphql-typescript-boilerplate) - A starter kit for building amazing GraphQL API's with TypeScript and express by @w3tecch## License
[MIT](/LICENSE)---
Made with ♥ by Gery Hirschfeld ([@GeryHirschfeld1](https://twitter.com/GeryHirschfeld1))