Skip to content

Commit

Permalink
Merge pull request #6 from koajs/flow-draw
Browse files Browse the repository at this point in the history
flow draw to explain how userauth work. fixes #4
  • Loading branch information
dead-horse committed Feb 26, 2015
2 parents cf0e644 + 95fd733 commit 87a0ce9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
language: node_js
node_js:
- "iojs-1"
- "0.12"
- "0.11"
script: "make test-travis"
after_script: "npm install coveralls@2.10.0 && cat ./coverage/lcov.info | coveralls"
after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jshint: install

test:
@NODE_ENV=test ./node_modules/mocha/bin/mocha \
--harmony-generators \
--harmony \
--reporter $(REPORTER) \
--timeout $(TIMEOUT) \
--require should \
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ we will use [path-match](https://github.com/expressjs/path-match) transfer it to
5. If login check callback error, next(err).
6. user visit `$logoutPath`, set `req.session[userField] = null`, and redirect back.

![userauth flow](https://www.lucidchart.com/publicSegments/view/54ede23d-a75c-4690-9408-33a30a008a99/image.png)

> [Source image file](https://www.lucidchart.com/documents/edit/4749f226-b75f-42ef-934f-b89f7bd68c7f?driveId=0ACmMEQjF7GJGUk9PVA)

## License

MIT
[MIT](LICENSE)

0 comments on commit 87a0ce9

Please sign in to comment.