You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+43-3Lines changed: 43 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -173,6 +173,11 @@ You can tune the middleware behavior using middleware specific configuration par
173
173
- "ajaxOnly.excludeMethods": The methods that do not require AJAX ("OPTIONS,GET")
174
174
- "ajaxOnly.headerName": The name of the required header ("X-Requested-With")
175
175
- "ajaxOnly.headerValue": The value of the required header ("XMLHttpRequest")
176
+
- "dbAuth.mode": Set to "optional" if you want to allow anonymous access ("required")
177
+
- "dbAuth.usersTable": The table that is used to store the users in ("users")
178
+
- "dbAuth.usernameColumn": The users table column that holds usernames ("username")
179
+
- "dbAuth.passwordColumn": The users table column that holds passwords ("password")
180
+
- "dbAuth.returnedColumns": The columns returned on successful login, empty means 'all' ("")
176
181
- "jwtAuth.mode": Set to "optional" if you want to allow anonymous access ("required")
177
182
- "jwtAuth.header": Name of the header containing the JWT token ("X-Authorization")
178
183
- "jwtAuth.leeway": The acceptable number of seconds of clock skew ("5")
@@ -635,13 +640,48 @@ The GeoJSON functionality is enabled by default, but can be disabled using the "
635
640
636
641
### Authentication
637
642
638
-
Authentication is done by means of sending a "Authorization" header. It identifies the user and stores this in the `$_SESSION` super global.
643
+
Currently there are three types of authentication supported. They all store the authenticated user in the `$_SESSION` super global.
639
644
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.
640
-
Currently there are two types of authentication supported: "Basic" and "JWT". This functionality is enabled by adding the 'basicAuth' and/or 'jwtAuth' middleware.
645
+
The following overview shows the kinds of authentication middleware that you can enable.
646
+
647
+
| Name | Middleware | Authenticated via | Users are stored in | Session variable |
0 commit comments