egg-passport-citi
Citi passport plugin for egg.
Example
Open https://uniheart.herokuapp.com/passport/citi to see the result.
Install
$ npm i egg-passport-citi --save
Usage
// {app_root}/config/plugin.[t|j]sexportspassportCiti = enable: true package: "egg-passport-citi";
Configuration
// {app_root}/config/config.default.[t|j]sexportspassportCiti = key: "your oauth key" secret: "your oauth secret" callbackURL: "/your/callback-or-redirect/url" // state: your customized state function, default to uuid() {};
Mount on your app
// {app_root}/app/router.ts; ;
see config/config.default.ts for more detail.
Example
Testing Accounts:
User ID | Password |
---|---|
SandboxUser1 | P@ssUser1$ |
SandboxUser2 | P@ssUser2$ |
SandboxUser3 | P@ssUser3$ |
SandboxUser4 | P@ssUser4$ |
SandboxUser5 | P@ssUser5$ |
License
Test
npm run test-local