@@ -11,23 +11,23 @@ and it consists of an alphanumeric string.
1111In order to protect specific resources, clients need to be authenticated with user/admin roles. These roles are
1212identified from the access token sent via the ` Authorization ` header.
1313
14- When DotKernel API receives a request, it tries to read the access token:
14+ When DotKernel API receives a request, it tries to read the access token.
1515
16- - if it does not find an access token, client has ` guest ` role:
17- - if the requested endpoint needs no authentication, the requested resource is returned
18- - else, a ` 403 Forbidden ` response is returned
19- - else , client's account is identified and client has ` admin ` /` user ` role (the one assigned in their account)
20- - if the requested endpoint is accessible to the client, the requested resource is returned
21- - else, a ` 403 Forbidden ` response is returned
16+ If it does not find an access token, client has ` guest ` role:
17+ - if the requested endpoint needs no authentication, the requested resource is returned
18+ - else, a ` 403 Forbidden ` response is returned
19+ Else , client's account is identified and client has ` admin ` /` user ` role (the one assigned in their account)
20+ - if the requested endpoint is accessible to the client, the requested resource is returned
21+ - else, a ` 403 Forbidden ` response is returned
2222
23- DotKernel API provides out-of-the-box both:
23+ DotKernel API provides out-of-the-box both an ` admin ` and a ` user ` account.
2424
25- - an account with ** role** set to both ` superuser ` and ` admin ` with the following credentials:
26- - ** identity** : ` admin `
27- - ** password** : ` dotkernel `
28- - an account with ** role** set to both ` user ` and ` guest ` with the following credentials:
29- - ** identify** : ` test@dotkernel.com `
30- - ** password** : ` dotkernel `
25+ The admin account with ** role** set to both ` superuser ` and ` admin ` with the following credentials:
26+ - ** identity** : ` admin `
27+ - ** password** : ` dotkernel `
28+ The user account with ** role** set to both ` user ` and ` guest ` with the following credentials:
29+ - ** identify** : ` test@dotkernel.com `
30+ - ** password** : ` dotkernel `
3131
3232## Flow
3333
@@ -44,7 +44,7 @@ DotKernel API provides out-of-the-box both:
4444
4545For a better overview of the flow, see the below image:
4646
47- ![ ] ( https://docs.dotkernel.org/img/api/token-authentication.png " Token authentication flow " )
47+ ![ Token authentication flow ] ( https://docs.dotkernel.org/img/api/token-authentication.png )
4848
4949## Generate admin access token
5050
0 commit comments