jaguar_auth.authenticators library

jaguar_auth provides three types of Authenticators out of the box:

  1. BasicAuth BasicAuth performs authentication based on basic authentication. It expects base64 encoded "username:password" pair in "authorization" header with "Basic" scheme.
  2. FormAuth UsernamePasswordAuth expects username and password as 'application/x-www-form-urlencoded'
  3. JsonAuth UsernamePasswordJsonAuthexpects username and password as 'application/json'

Classes

BasicAuth<UserModel extends PasswordUser>
BasicAuth performs authentication based on basic authentication. [...]
FormAuth<UserModel extends PasswordUser>
An Authenticator for standard username password form style login. It expects a application/x-www-form-urlencoded encoded body where the username and password form fields must be called username and password respectively. [...]
JsonAuth<UserModel extends PasswordUser>
An Authenticator for standard username password login using ajax requests. It expects a application/json encoded body where the username and password fields must be called username and password respectively. [...]