Awesome Open Source
Awesome Open Source

oAuthCenter

nodejs OAuth authorization server implements based on eggjs

QuickStart

see egg docs for more detail.

Development

$ npm i
$ npm run dev
$ open http://localhost:7001/

Deploy

$ npm start
$ npm stop

npm scripts

  • Use npm run lint to check code style.
  • Use npm test to run unit test.
  • Use npm run autod to auto detect dependencies upgrade, see autod for more detail.

测试图片

下面是code模板测试的完整流程:

然后是点击登录按钮进行跳转:

注意:跳转过去携带了client_id等信息,然后是oAuth登录授权:

最后是授权成功,回跳回来子系统指定的回调地址:


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Javascript (1,155,559
Mysql (32,447
Oauth (14,308
Unit Test (2,805
Egg (2,208
Code Style (1,047
Eggjs (493
Sequlize (12
Eggjs Example (3