Skip to content

Commit

Permalink
fixup!: apply feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jannyHou committed Feb 28, 2020
1 parent 29378aa commit 674239f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/site/migration/auth/example.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This example is migrated from
and uses the authentication and authorization system in LoopBack 4 to implement
the access control.

# App Scenario
## App Scenario

In this example, we create "Startkicker" (a basic Kickstarter-like application)
to demonstrate authentication and authorization mechanisms in LoopBack. The
Expand Down Expand Up @@ -57,11 +57,12 @@ tutorial.

The LoopBack 4 authorization system gives developers the flexibility to
implement the RBAC on their own. You can leverage popular third-party libraries
like [casbin](https://github.com/casbin/casbin) or [oauth0](https://auth0.com/)
like [casbin](https://github.com/casbin/casbin) or [oAuth0](https://auth0.com/)
for the role mapping.

This guide includes a demo for using [casbin](#steps-with-casbin) and using
[oauth0](#steps-with-oauth0)(TBD)
This guide includes a demo for using
[casbin](#migrating-example-to-loopback-4-with-casbin) and using
[oAuth0](#migrating-example-to-loopback-4-with-oauth0)(TBD)

## Migrating Example to LoopBack 4 with Casbin

Expand Down
4 changes: 4 additions & 0 deletions docs/site/sidebars/lb4_sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,10 @@ children:
output: 'web, pdf'
children:

- title: 'Access control example'
url: migration-auth-access-control-example.html
output: 'web, pdf'

- title: 'Built-in models'
url: migration-auth-built-in.html
output: 'web, pdf'
Expand Down

0 comments on commit 674239f

Please sign in to comment.