Skip to content

Draft: Jira Connect App (frontend): use OAuth token throughout application

What does this MR do?

WIP, branching off !67895 (closed)

This work was started in !66919 (closed). The initial frontend code (created as part of !68720 (merged)) has been merged into !67895 (closed).

Screenshots or Screencasts (strongly suggested)

How to setup and validate locally (strongly suggested)

See the development guide to install the Jira app in a development environment.

In GitPod:

  1. Start a Gitpod and open the rails console bundle exec rails console
  2. Enable the feature flag Feature.enable(:jira_connect_oauth)

On the GitPod's GitLab instance:

  1. Go to admin -> applications
  2. Create a new app with, Name: Jira Connect, Redirect URI: YOUR_GITPOD_INSTANCE/-/jira_connect/oauth_callbacks, Scopes: api, Trusted: No, Confidential: No
  3. Copy Application ID
  4. Go to gitpod.io/variables
  5. Create a new variable with name JIRA_CONNECT_OAUTH_CLIENT_ID, scope */* and paste the Application ID as value.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Tom Quirk

Merge request reports