Single sign on with jira for third party application


I am working on an emotional analytics application for jira .Emotion Analytics for Jira . I want to implement single sign on with jira to access jira data for users . required auth flow : 1) redirect user from my app to jira 2) user authenticates and grants permissions 3) redirects user from jira to my application with auth info .