/oauth2-server

A Simple Example of An OAuth2 Server using MySQL and Express

Primary LanguageJavaScriptMIT LicenseMIT

oauth2-server

A Simple Example of An OAuth2 Server using Node.js, MySQL, and Express

Installation

  1. Create a database named oauth2_server
  2. Modify the user and password parameters at the top of the controllers/db.js file
  3. Run npm install to install dependencies
  4. Run node seed.js to insert a client and a user into the database
    username: user1
    password: 123456
    client_id: client
    client_secret: secret