Skip to content

feat/oauth_example

Repository files navigation

OAuth 认证示例

演示第三方应用如何通过OAuth 2.0的机制,访问 featapi.com 上的受限资源

流程:

Authorization Code Flow

本地运行

  1. 拉取仓库代码
git clone https://github.com/feat/oauth_example
  1. 创建 .env ,并填入 FEAT_CLIENT_IDFEAT_CLIENT_SECRETFEAT_CLIENT_ID以及FEAT_CLIENT_SECRET 可以在 https://www.feat.com/application 中获取
# 从模板中创建
cp .env.example .env
# 编辑
  1. 安装依赖
npm install
  1. 启动应用
npm start

About

OAuth Grant - authorization code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published