-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix audit log for issued access tokens and add refresh token event #774
Conversation
- removed: token expiration, client-id, scopes - added: jwt header and body
private final HeaderDTO header = new HeaderDTO(); | ||
private final Map<String, Object> body; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it really needed to keep a HeaderDTO
and a Map
objects, when at the end we will simply print strings? alternatively, can't we simply keep a reference to the token itself and extract what is needed when the event is used?
iam-login-service/src/main/java/it/infn/mw/iam/audit/events/tokens/TokenEvent.java
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
This PR includes the issued token (AT and/or RT) decoded in an audit event, e.g.
Example of Access Token well-formed AUDIT content:
Example of Refresh Token well-formed AUDIT content:
Depends on: indigo-iam/OpenID-Connect-Java-Spring-Server#18