Anvil | Smiths Smiths | Register Register | Login Login |
Search:
Show links Show tools Show tree | Previous document Next document | njet.org > Anvil > Documentation > Configuration > Providers > SimpleWebAuthorization

anvil.server.simple.SimpleWebAuthorization

Auth alternative to basic authorization. Uses request paramers to authenticate users.

SWA is expecting username and password in ``webauth.username´´ and ``webauth.password´´ request parameters. Request method can be GET or POST (recommended).

property default description
loginpath (required) Path to page that contains login form, note that login page should be inside the realm so that SWA gets called when user directly requests for login page.
forwardpath   If user first requests for login page directly, forwardpath is where user is forwarded after successfull login.
ipauth false Enables client ip based authentication. If citizen with same 'ctz.ip' variable value is found from realm it's automatically used to log in. Possible security problem if someone's spoofing..

Config example:
    
access:
  required = true
  type = anvil.server.simple.SimpleWebAuthorization
  realm = topSecret
  title = Top secret

  loginpath = /secret/login.nvl
  forwardpath = /secret/index.nvl
  ipauth = true
end
See also  | Providers
What's new | Anvil