TerribleDev / OwinOAuthProviders

OAuth providers for Owin
MIT License
504 stars 236 forks source link

Atlassian JIRA Provider - feature request #210

Open rogermoka opened 7 years ago

rogermoka commented 7 years ago

Hi everyone!

I'm building a MVC 5 Web App and I'd like to use JIRA as an authentication provider. I've been trying to accomplish it (use Owin with JIRA) for a couple days and nothing. I pretty new in Owin and OAuth patterns, so it looks a little complex to me yet.

If you guys could point some material out or any example that could help me to start, I'd be glad to contribute and develop the OwinOAuthProviders.JIRA 👍

https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-oauth-authentication

Thank you very much!!

BR, Roger Mokarzel

TerribleDev commented 7 years ago

Hi @rogermoka

There is no ideal pattern, and unfortunatly the security model in Owin requires a decent amount of customization for each provider.

Typically you have to copy the code from another provider, change the callback path, and the url endpoints then write the appropriate http calls for the oauth endpoint. Also you usually have to add any claims that make sense, and provide default scopes based upon the provider.

rogermoka commented 7 years ago

@TerribleDev, thank you. believe it or not, you gave me a north, I'm going to try it!!

rogermoka commented 7 years ago

Guys, just to help anyone that need to use JIRA as OAuth provider: http://tzhwang.com/2016/10/20/jira-oauth-authentication-using-dotnetauth/ this post helped me to accomplish it, yet I didn't build a proper identity provider to be published here.

BR, Roger Mokarzel

TerribleDev commented 7 years ago

are you planning on making one?

rogermoka commented 7 years ago

not right now, @TerribleDev. but I hope to get some free time at the end of the year. 👍