Crowd Event Listener Question

I'm currently evaluating Crowd and there is one specific functionality that I need - I would like to setup an event listener that will get called during an authentication (from ANY application as setup in Crowd) and use the corresponding username and password for further processing. I noticed there is an event in Crowd called UserAthenticationSuceededEvent (http://docs.atlassian.com/atlassian-crowd/latest/com/atlassian/crowd/event/user/UserAuthenticationSucceededEvent.html) but it does not seem to provide the username and password. Any advice is appreciated.

Thank you.

2 answers

0 votes
Yilin Mo Atlassian Team Jan 13, 2013

Since the event is fired after the authentication is done, it will just return the token to let the client to keep login with the applicaiton. But it will at least return the user. Having password insde should be less secure, isn't it?

Thanks for your quick reply. Unfortunately, the product that I am trying to integrate does not support (Crowd) SSO out-of-the-box and I have no access to its source code (a third-party product). It does provide a REST API for authentication but requires both the username and password. The only workaround that I could think of is to have Crowd authenticates behalf of the user when the user authenticate via crowd, which at that point I could forward both the username and password into the product for authentication behalf of the user. However, this requires Crowd to provide both username and password via its event. I'm running out of idea, any suggestions?

Thanks for your quick reply. Unfortunately, the product that I am trying to integrate does not support (Crowd) SSO out-of-the-box and I have no access to its source code (a third-party product). It does provide a REST API for authentication but requires both the username and password. The only workaround that I could think of is to have Crowd authenticates behalf of the user when the user authenticate via crowd, which at that point I could forward both the username and password into the product for authentication behalf of the user. However, this requires Crowd to provide both username and password via its event. I'm running out of idea, any suggestions?

Any comments or suggestions?

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

321 views 0 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot