Making JIRA more social using LinkedIn log in feature
12 Mar 2013For this ShipIt I wanted to investigate how to ease life of our users by allowing them not to have to remember yet another username/password to access JIRA.
Because LinkedIn is the worlds biggest professional network I decided to go and use them to authenticate users for JIRA. They give nice JavaScript Sign In button with allows you to setup whole authentication in minutes.
Unfortunately that requires a fixed domain name and cross origin headers. Nothing wrong with that but I wanted to make it a plugin that everyone could install (so no prior knowledge of domain name). Decided to use some Java client library.
A bit of JavaScript injecting a button on log in page.
Redirects you to LinkedIn as part of OAuth dance.
A new fresh account is created for you (if it doesn’t exist) and you’re automatically logged in.
Some nice defaults.
Since we now have a user and his OAuth tokens we can do whatever we want (as long as he agrees) - get details from LinkedIn about his connections, publish some updates like new releases, promote issues (like spreading the world to reach more voters), etc.