-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): update migration docs for authentication/authorization
- Loading branch information
1 parent
9038b37
commit f2f64b7
Showing
4 changed files
with
131 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
lang: en | ||
title: | ||
'Migrating authentication and authorization for an example LoopBack 3 | ||
application' | ||
keywords: LoopBack 4.0, LoopBack 4, LoopBack 3, Migration | ||
sidebar: lb4_sidebar | ||
permalink: /doc/en/lb4/migration-auth-example.html | ||
--- | ||
|
||
## Example LoopBack 3 application | ||
|
||
- https://github.com/strongloop/loopback-example-access-control | ||
|
||
## Migration to LoopBack 4 | ||
|
||
1. Set up `/login` endpoint | ||
|
||
2. Set up authentication | ||
|
||
- Authentication action | ||
- `@authenticate` | ||
- Authentication strategies | ||
|
||
3. Set up authorization | ||
|
||
- Migrate ACLs -> `@authorize` | ||
- Migrate custom role resolvers -> `Authorizer` or `Voter` | ||
|
||
## Use a third party library as the authorizer | ||
|
||
- Casbin | ||
|
||
## Use a third party service as the authorizer | ||
|
||
- Auth0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters