Hi, I want to use the Custom listener on the UserAuthenticationfailedInvalidAuthenticationUser event. But I did not find any documentation on this event.
I would like to get some information on the login such as the username used to try to login
What method can I use with UserAuthenticationfailedInvalidAuthenticationUser event Object?
Can you help me?
Thank you
Hi Cyril,
There are just a couple of thing you can get from a UserAuthenticationfailedInvalidAuthenticationUser event (Occurs whenever a user fails to authenticate). So for example you can get the username and the timestamp that the event happened
log.debug("User name who failed to login: ${event?.username}") Date date = new Date(event?.getTimestamp()) log.debug ("Date and time event took place : ${date}")
hope that helps,
Thanos
Thank you for your answer. It is enough for my need, but for my curiosity where can i find all the attribute and method of the object UserAuthenticationfailedInvalidAuthenticationUser
In the link you sent to me, I did not find anything about "username" or "getTimestamps"
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is a bug in the inline script of script runner.
when I I use "event?.username", scriptrunner tells me :
No such property : username in the class com.atlassian.jira.event.issue.issueEvent
But it works anyway.
The web interface shows the event object as com.atlassian.jira.event.issue.issueEvent object
and the logs shows the event object as com.atlassian.crowd.event.user.UserAuthenticationFailedInvalidAuthenticationEvent object
So if someone get his code underline, they should not consider the web interface error and execute the code to check in the logs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.