telefonicaid / fiware-pep-steelskin

Telefonica's implementation of the FIWARE PEP GE
GNU Affero General Public License v3.0
0 stars 0 forks source link

Task/access accounting #354

Closed AlvaroVega closed 7 years ago

AlvaroVega commented 7 years ago

Fermín: Implements issue #350

Feature to print in a file all access log, including:

These logs includes right access (action is OK). But invalid access (wrong token, wrong user, wrong service, and so on) or non allowed actions are not logged.

mrutid commented 7 years ago

Determine Origin:

In your request object there is a property called connection, which is a net.Socket object. The net.Socket object has a property remoteAddress, therefore you should be able to get the IP with this

request.connection.remoteAddress