Skip to content

Commit

Permalink
Added dbAuth middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
mevdschee committed Jul 11, 2019
1 parent 4e0ab9a commit 0856c2f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -644,11 +644,11 @@ Currently there are three types of authentication supported. They all store the
This variable can be used in the authorization handlers to decide wether or not sombeody should have read or write access to certain tables, columns or records.
The following overview shows the kinds of authentication middleware that you can enable.

| Name | Middleware | Authenticated via | Users are stored in | Session variable |
| -------- | ---------- | ---------------------- | ------------------- | --------------------- |
| Database | dbAuth | '/login' endpoint | Database table | $_SESSION['user'] |
| Basic | basicAuth | 'Authorization' header | '.htpasswd' file | $_SESSION['username'] |
| JWT | jwtAuth | 'Authorization' header | identity provider | $_SESSION['claims'] |
| Name | Middleware | Authenticated via | Users are stored in | Session variable |
| -------- | ---------- | ---------------------- | ------------------- | ----------------------- |
| Database | dbAuth | '/login' endpoint | database table | `$_SESSION['user']` |
| Basic | basicAuth | 'Authorization' header | '.htpasswd' file | `$_SESSION['username']` |
| JWT | jwtAuth | 'Authorization' header | identity provider | `$_SESSION['claims']` |

Below you find more information on each of the authentication types.

Expand Down

0 comments on commit 0856c2f

Please sign in to comment.