issues
search
SAP
/
cf-nodejs-logging-support
Node.js Logging Support for Cloud Foundry provides the creation of structured log messages and the collection of request metrics
https://sap.github.io/cf-nodejs-logging-support/
Apache License 2.0
43
stars
22
forks
source link
Read remote_user from req.user.id field
#97
Closed
christiand93
closed
3 years ago
christiand93
commented
3 years ago
Change source of
remote_user
field to
req.user.id
.
This allows logging user id in combination with authentication middleware.
Passport:
https://www.npmjs.com/package/passport
Environment variable LOG_REMOTE_USER has to be set to "true" to enable writing the
remote_user
field.
Update tests.
remote_user
field toreq.user.id
.remote_user
field.