Skip to content

Commit

Permalink
docs: add auth tutorial example
Browse files Browse the repository at this point in the history
  • Loading branch information
jannyHou committed Jul 27, 2020
1 parent af9b56b commit bbff2b0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions docs/site/Authentication-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ sidebar: lb4_sidebar
permalink: /doc/en/lb4/Authentication-overview.html
---

## Overview

Security is of paramount importance when developing a web or mobile application
and usually consists of two distinct pieces:

Expand Down Expand Up @@ -48,6 +50,8 @@ the JWT extension `@loopback/jwt-authentication`, which helps in implementing
JWT-based authentication to the system and should be provided by extension
developers.

## Tutorials

The authentication system is highly extensible and pluggable. It's easy to get
started with. While there are more advanced features to explorer - of which are
beneficial when you build more complicated and larger scale applications, it
Expand All @@ -68,3 +72,21 @@ we've broken down the documentations into several parts:
Particularly for extension developers.
- [Use **Express Passport** strategies](Authentication-passport.md): The usage
of passport adapter module `@loopback/authentication-passport`.

## Examples

Here is a list of authentication related examples created by LoopBack team or
contributed by community members:

- **[passport-login](https://github.com/strongloop/loopback-next/tree/master/examples/passport-login)**:
An example implementing authentication in a LoopBack application using
[Passport](https://github.com/jaredhanson/passport) modules.

- **[todo-jwt](https://github.com/strongloop/loopback-next/tree/master/examples/todo-jwt)**:
A modified
[Todo example](https://github.com/strongloop/loopback-next/tree/master/examples/todo)
with JWT authentication.

- **[(community) build jwt authentication from scratch](https://github.com/HrithikMittal/Loopback4-auth)**:
An example to enable JWT authentication in a LoopBack application with
detailed steps.
2 changes: 1 addition & 1 deletion docs/site/Examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ LoopBack 4 comes with the following example projects.
### Authentication and authorization related examples

- **[passport-login](https://github.com/strongloop/loopback-next/tree/master/examples/passport-login)**:
An example implmenting authentication in a LoopBack application using
An example implementing authentication in a LoopBack application using
[Passport](https://github.com/jaredhanson/passport) modules.

- **[todo-jwt](https://github.com/strongloop/loopback-next/tree/master/examples/todo-jwt)**:
Expand Down

0 comments on commit bbff2b0

Please sign in to comment.