Skip to content

Commit b63cc7f

Browse files
David Benkopboling
authored andcommitted
Update README.md
1 parent eb3ab39 commit b63cc7f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,15 @@ end
329329

330330
Then link users to `/auth/ldap` in your app (for example, in a Devise sign-in page).
331331

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+
332341
### Using a custom filter
333342

334343
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
708717
</picture>
709718
</a>, and omniauth-ldap contributors.
710719
</li>
720+
<li>
721+
Copyright (C) 2014 David Benko
722+
</li>
711723
<li>
712724
Copyright (c) 2011 by Ping Yu and Intridea, Inc.
713725
</li>

0 commit comments

Comments
 (0)