- Notifications
You must be signed in to change notification settings - Fork39
caiya/eggjs-oAuth2-server
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
nodejs OAuth authorization server implements based on eggjs
seeegg docs for more detail.
$ npm i$ npm run dev$ open http://localhost:7001/
$ npm start$ npm stop
- Use
npm run lint
to check code style. - Use
npm test
to run unit test. - Use
npm run autod
to auto detect dependencies upgrade, seeautod for more detail.
下面是code模板测试的完整流程:
然后是点击登录按钮进行跳转:
注意:跳转过去携带了client_id等信息,然后是oAuth登录授权:
最后是授权成功,回跳回来子系统指定的回调地址: