Least painful way to let customers login with the same passwords as in an existing mysql database?

All of our potential service desk customers have user accounts for other internally developed services stored in a MySQL database as a simple row with a username and a salted hash in it. We don't use LDAP or anything fancy - just queries to the database from our own applications. 

What is the least painful way to get these username/salted-password-hash pairs into Crowd or JIRA Service Desk such that our users can log in without creating new service desk accounts and without opening our service desk to the general public?

1 answer

This widget could not be displayed.

This depends on whether you want your mysql database to continue being the canonical store of users for your organisation. If you don't want that, I would:

  1. export those users from mysql to a csv file
  2. import the csv file into Crowd
  3. if your password hashing scheme is not natively supported by Crowd, write a custom password encoder for Crowd so that it can validate user's passwords against your stored passwords
  4. connect JIRA Service Desk to Crowd

If you do want your mysql user base to continue being the canonical store, you have the option of extending that with a script (/dedicated service) that periodically syncs from your mysql user base to Crowd using Crowd's REST APIs (easy but causes a delay when users are added/removed/updated), or ignoring the preceding and implementing a custom Crowd directory to read directly from your mysql database.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

167 views 1 3
Join discussion

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