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 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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

290 views 3 11
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