JSPM

iisuser

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q24131F
  • License MIT

Middleware to parse the iis username from headers passed by iisnode and set on the request

Package Exports

  • iisuser

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (iisuser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

iisuser

Middleware to parse the iis username from headers passed by iisnode and set on the request.

Build Status

Installation

npm install --save iisuser

Usage

app.use(iisuser({

  //only accepts iis `logon_user` variable if true
  //accepts `logon_user`, `auth_user`, `remote_user`, `unmapped_remote_user` if false
  //default: false
  strict: false,

  //property to set the username on the request.
  //Eg. if username is myuser, after middleware, req.username = 'myuser'
  //default: 'username'
  reqProperty: 'username',

  //whether to remove domain component from username.
  //Eg. ABC\\myuser -> myuser
  //default: false
  removeDomain: false
}))

Debugging

iisuser can output debugging information if desired. To turn debugging on use the environment variable DEBUG=iisuser On windows this can be set from the console like so:

set DEBUG=iisuser