A Simple Example of An OAuth2 Server using Node.js, MySQL, and Express
- Create a database named oauth2_server
- Modify the user and password parameters at the top of the controllers/db.js file
- Run
npm install
to install dependencies - Run
node seed.js
to insert a client and a user into the database
username: user1
password: 123456
client_id: client
client_secret: secret