Magical authentication for Rails 3 & 4 (with Jira as external provider option)