Original request: SecurityListener should be notified when ApiTokenFilter approves or denies a REST authentication attempt. jglick says that the logic should be reviewed from scratch.
TL;DR:
- Investigate how it works
- Send events when it does not
Acceptance criteria:
- We cover REST, CLI, Web UI...
- Data should be forwarded to SecurityListener and logged here:
|
LOGGER.log(Level.FINE, "authenticated: {0} {1}", new Object[] {details.getUsername(), groups}); |
- Anybody should be able to attach to the Security Listener and get the information (via plugin or so)
- Nice2have: Review Javadoc of the engine and ensure it is still correct
- Nice2have: Document the login flow in Wiki (or Jenkins.io developer docs)
- What should happen:
- When you login, you get event
- When the authentication is sent, you get event. Includes REST API (password != API token) and Web calls. Example:
|
SecurityListener.fireAuthenticated(user); |
Not in scope:
- SecurityListener Audit Trail patch is not in the scope. May be used as reference impl if we need to add new API
Originally reported by
jglick, imported from: Log/notify REST authentication via API token
- assignee:
wfollonier
- status: Resolved
- priority: Major
- component(s): core
- label(s): api, logging, rest, security
- resolution: Fixed
- resolved: 2017-12-05T14:05:53+00:00
- votes: 0
- watchers: 5
- imported: 2025-11-24
Raw content of original issue
Original request: SecurityListener should be notified when ApiTokenFilter approves or denies a REST authentication attempt. jglick says that the logic should be reviewed from scratch.
TL;DR:
- Investigate how it works
- Send events when it does not
Acceptance criteria:
- We cover REST, CLI, Web UI...
- Data should be forwarded to SecurityListener and logged here:
|
LOGGER.log(Level.FINE, "authenticated: {0} {1}", new Object[] {details.getUsername(), groups}); |
- Anybody should be able to attach to the Security Listener and get the information (via plugin or so)
- Nice2have: Review Javadoc of the engine and ensure it is still correct
- Nice2have: Document the login flow in Wiki (or Jenkins.io developer docs)
- What should happen:
- When you login, you get event
- When the authentication is sent, you get event. Includes REST API (password != API token) and Web calls. Example:
|
SecurityListener.fireAuthenticated(user); |
Not in scope:
- SecurityListener Audit Trail patch is not in the scope. May be used as reference impl if we need to add new API
Original request: SecurityListener should be notified when ApiTokenFilter approves or denies a REST authentication attempt. jglick says that the logic should be reviewed from scratch.
TL;DR:
Acceptance criteria:
jenkins/core/src/main/java/jenkins/security/SecurityListener.java
Line 91 in 08def67
jenkins/core/src/main/java/hudson/security/AbstractPasswordBasedSecurityRealm.java
Line 116 in 7290169
Not in scope:
Originally reported by
jglick, imported from: Log/notify REST authentication via API token
Raw content of original issue
Acceptance criteria:
jenkins/core/src/main/java/jenkins/security/SecurityListener.java
Line 91 in 08def67
jenkins/core/src/main/java/hudson/security/AbstractPasswordBasedSecurityRealm.java
Line 116 in 7290169
Not in scope: