Skip to content

Commit

Permalink
Update README.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhanson committed Jun 22, 2021
1 parent 332d40c commit 6197a8b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,17 @@ Added to the scaffolding are files which add authentication to the application.

* [`boot/auth.js`](boot/auth.js)

This file initializes Passport. It configures the Facebook strategy and supplies
the serialization functions used for session management.
This file initializes Passport. It configures the Facebook strategy and
supplies the serialization functions used for session management.

* [`routes/auth.js`](routes/auth.js)

This file defines the routes used for authentication. In particular, there are
two routes used to authenticate with Google:
This file defines the routes used for authentication. In particular, there
are three routes used to authenticate with Facebook:

- `GET /login`

This route renders a page that prompts the user login with Facebook.

- `GET /login/federated/www.facebook.com`

Expand All @@ -77,10 +81,10 @@ Added to the scaffolding are files which add authentication to the application.

- `POST /oauth2/redirect/www.facebook.com`

This route completes the authentication sequence when Facebook redirects the
user back to the application. When a new user logs in, a user account is
automatically created and their Facebook account is linked. When an existing
user returns, they are logged in to their linked account.
This route completes the authentication sequence when Facebook redirects the
user back to the application. When a new user logs in, a user account is
automatically created and their Facebook account is linked. When an
existing user returns, they are logged in to their linked account.

## License

Expand Down
2 changes: 1 addition & 1 deletion views/login.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<hgroup>
<h1>Sign in</h1>
</hgroup>
<a href="/login/federated/www.facebook.com" role="button">Log In with Facebook</a>
<a href="/login/federated/www.facebook.com" role="button">Login with Facebook</a>
</div>
<div></div>
</article>
Expand Down

0 comments on commit 6197a8b

Please sign in to comment.