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
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -329,6 +329,15 @@ end
329
329
330
330
Then link users to `/auth/ldap` in your app (for example, in a Devise sign-in page).
331
331
332
+
### Use JSON Body
333
+
334
+
This gem is compatible with JSON-encoded POST bodies as well as traditional form-encoded.
335
+
336
+
Set header `Content-Type` to `application/json`
337
+
338
+
Send your credentials similar to below to use this gem:
339
+
`{"username":"USERNAME","password":"PASSWORD"}`
340
+
332
341
### Using a custom filter
333
342
334
343
If you need to restrict authentication to a group or use a more complex lookup, pass `:filter`. Use `%{username}` — it will be replaced with the processed username (after `:name_proc`).
@@ -708,6 +717,9 @@ See [LICENSE.txt][📄license] for the official [Copyright Notice][📄copyright
0 commit comments