Skip to content

Commit 38c38c1

Browse files
committed
added authentication and authorization documentations
1 parent b931651 commit 38c38c1

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

docs/book/v4/core-features/authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ The server responds with a JSON as follows:
116116
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9...",
117117
"refresh_token": "def5020087199939a49d0f2f818..."
118118
}
119-
```
119+
```

docs/book/v4/core-features/authorization.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ DotKernel's APIs implementation of the authorization uses `Mezzio\Authorization\
77
Role-Based Access Control (RBAC)
88

99
## How it works
10+
1011
In DotKernel's API each authenticatable entity (admin and users) comes in with their roles table where you can define
1112
roles for each entity. RBAC comes in to ensure that each entity has the appropriate role and permission to access a resource.
1213

@@ -63,8 +64,6 @@ A role can inherit the roles of their parent:
6364

6465
- `superuser` has no parent
6566
- `admin` has `superuser` as a parent which means `superuser` will inherit `admin` permissions
66-
67-
6867
- `user` has no parent
6968
- `guest` has `user` as a parent which means `user` will inherit `guest` permissions
7069

0 commit comments

Comments
 (0)