Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@
/extensions/authentication-jwt @emonddr @hacksparrow @jannyHou
/docs/site/tutorials/authentication @emonddr @hacksparrow @jannyHou
/examples/passport-login @deepakrkris @emonddr
/examples/todo-jwt @dhmlau @jannyHou

#
# Authorization
Expand Down
15 changes: 11 additions & 4 deletions docs/site/Examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@ LoopBack 4 comes with the following example projects.
An example demonstrating how to implement a Role Based Access Control (RBAC)
system.

### 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
[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.

### Other examples

- **[context](https://github.com/strongloop/loopback-next/tree/master/examples/context)**:
Expand Down Expand Up @@ -81,10 +92,6 @@ LoopBack 4 comes with the following example projects.
- **[validation-app](https://github.com/strongloop/loopback-next/tree/master/examples/validation-app)**:
An example demonstrating how to add validations in a LoopBack application.

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

## How to download examples

You can download the example projects using our CLI tool `lb4`:
Expand Down
1 change: 1 addition & 0 deletions docs/site/MONOREPO.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ The [loopback-next](https://github.com/strongloop/loopback-next) repository uses
| [example-soap-calculator](https://github.com/strongloop/loopback-next/tree/master/examples/soap-calculator) | @loopback/example-soap-calculator | A tutorial demonstrating integration with a SOAP webservice |
| [example-todo-list](https://github.com/strongloop/loopback-next/tree/master/examples/todo-list) | @loopback/example-todo-list | Continuation of the todo example using relations in LoopBack 4 |
| [example-todo](https://github.com/strongloop/loopback-next/tree/master/examples/todo) | @loopback/example-todo | A basic tutorial for getting started with Loopback 4 |
| [example-todo-jwt](https://github.com/strongloop/loopback-next/tree/master/examples/todo-jwt) | @loopback/example-todo | A modified Todo example with JWT authentication |
| [example-validation-app](https://github.com/strongloop/loopback-next/tree/master/examples/validation-app) | @loopback/example-validation-app | An example demonstrating how to add validation in a LoopBack 4 application |
| [express](https://github.com/strongloop/loopback-next/tree/master/packages/express) | @loopback/express | Integrate with Express and expose middleware infrastructure for sequence and interceptors | | [extension-health](https://github.com/strongloop/loopback-next/tree/master/extensions/health) | @loopback/extension-health | Expose health check related endpoints |
| [extension-logging](https://github.com/strongloop/loopback-next/tree/master/extensions/logging) | @loopback/extension-logging | Add Winston Logger and Fluentd integration |
Expand Down
1 change: 1 addition & 0 deletions packages/cli/generators/example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const EXAMPLES = {
'passport-login': g.f(
'An example implmenting authentication in a LoopBack application using Passport modules.',
),
'todo-jwt': g.f('A modified Todo application with JWT authentication'),
};
Object.freeze(EXAMPLES);

Expand Down