Skip to content

Jira connect oauth: Add frontend to backend MR

What does this MR do?

Adds the bare minimum frontend code required for the Jira Connect App OAuth sign in flow.

It is intended to be merged into !67895 (closed) so that the entire feature can be reviewed end-to-end in a single MR.

Screenshots or Screencasts (strongly suggested)

Kapture_2021-08-24_at_16.28.06

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 Andy Schoenen

Merge request reports

Loading