diff --git a/CODEOWNERS b/CODEOWNERS index 44195e80582c..227f2620800d 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -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 diff --git a/docs/site/Examples.md b/docs/site/Examples.md index a98e69e2acc3..5e3c57acef47 100644 --- a/docs/site/Examples.md +++ b/docs/site/Examples.md @@ -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)**: @@ -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`: diff --git a/docs/site/MONOREPO.md b/docs/site/MONOREPO.md index 74a9f5ff23d0..3cc696b8d5fd 100644 --- a/docs/site/MONOREPO.md +++ b/docs/site/MONOREPO.md @@ -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 | diff --git a/packages/cli/generators/example/index.js b/packages/cli/generators/example/index.js index 8695e79f1686..c0b2db38b066 100644 --- a/packages/cli/generators/example/index.js +++ b/packages/cli/generators/example/index.js @@ -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);