I was happy to see that OAuth2.0 apps can now register webhooks. But it looks like I can not fully migrate from OAuth2.0 + Connect app for my usecase. Can someone let me know if I’m missing anything in the below usecase?
In an external application, I need
- user identity - a OAuth2.0 app is appropriate for this
- ability to configure webhooks - Connect app works well, but it would be ideal if this all happened with a single app. So I was planning to do this with the OAuth2.0 app now that this is possible
- ability to query the jira rest api for additional context when processing webhooks
It looks like point 3 is going to still be a problem with OAuth2.0 apps. As far as I can tell, token generation requires manual action from a user even after “installation”. And the token expires in an hour with no refresh mechanism. So there doesn’t seem to be a way to do background querying in response to a webhook. It seems like JWT authentication with the Connect app is the only option.
Hopefully I am overlooking something here. Any advice would be appreciated.