Reading code_challange from external website/popup

Hi everyone,

I am currently trying to add sign in to my forge jira plugin (issueGlance).

The sign in process uses my companies sign on website. I have to

  1. Redirect the user to this website (route.open('url') worked for this)
  2. After the use signed on to this website they get redirect through a redirect url that contains a code which I have to read.

As far as I am aware it is neither possible to redirect to a specific Issue nor is it possible to set the code in the url like this and read it.

I have also looked into https://developer.atlassian.com/platform/forge/use-an-external-oauth-2.0-api-with-fetch/#define-the-provider but I am not if this would work in my situation.

Hello,

Do you control the return redirect address? If so you can register a web trigger URL for your app and set that to be the redirect URL.