@@ -3,17 +3,36 @@ LoginAttempt
3
3
4
4
When authentication is enabled for the GUI, this event is emitted on every
5
5
login attempt. If either the username or password are incorrect, ``success ``
6
- is false and in any case the given username is returned. The included
7
- remote address concerns the immediate connecting host, which may not be the
8
- origin of the request, but e.g. a reverse proxy.
6
+ is false and in any case the given username is returned.
9
7
10
8
.. code-block :: json
11
9
12
10
{
13
11
"id" : 187 ,
14
12
"time" : " 2017-03-07T00:19:24.420386143+01:00" ,
15
13
"data" : {
16
- "remoteAddress" : " 127.0.0.1:55530" ,
14
+ "remoteAddress" : " 127.0.0.1" ,
15
+ "username" : " somename" ,
16
+ "success" : false
17
+ },
18
+ "type" : " LoginAttempt" ,
19
+ "globalID" : 195
20
+ }
21
+
22
+ If the ``X-Forwared-For `` header is present and the connecting host is
23
+ either on ``localhost `` or on the same LAN, it will be treated as a reverse
24
+ proxy. In this case, the ``remoteAddress `` field is filled with the leftmost
25
+ IP address from the header, and the additional ``proxy `` field retains the
26
+ original IP of the connecting host.
27
+
28
+ .. code-block :: json
29
+
30
+ {
31
+ "id" : 187 ,
32
+ "time" : " 2017-03-07T00:19:24.420386143+01:00" ,
33
+ "data" : {
34
+ "proxy" : " 127.0.0.1" ,
35
+ "remoteAddress" : " 192.168.178.10" ,
17
36
"username" : " somename" ,
18
37
"success" : false
19
38
},
0 commit comments