Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

基于eggjs的oAuth2.0授权服务端,包含完整流程实例

NotificationsYou must be signed in to change notification settings

caiya/eggjs-oAuth2-server

Repository files navigation

nodejs OAuth authorization server implements based on eggjs

QuickStart

seeegg docs for more detail.

Development

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

Deploy

$ npm start$ npm stop

npm scripts

  • Usenpm run lint to check code style.
  • Usenpm test to run unit test.
  • Usenpm run autod to auto detect dependencies upgrade, seeautod for more detail.

测试图片

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

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

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

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

About

基于eggjs的oAuth2.0授权服务端,包含完整流程实例

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp