Skip to content

refactor: prepare AccountService and GitLabService for OAuth login

Tomas Vik requested to merge 560-prepare-for-oauth into main

This MR contains several commits that are preparing our code for adding OAuth login. The MR only makes sense reviewed commit-by-commit.

  1. The first commit is the largest and it renames a services folder to accounts since the folder contains only account-related logic.
  2. Then there is a commit that adds UriHandler that any part of the extension can use to listen on gitlab-workflow:// links.
  3. Then there are several commits that are preparing the fetch plumbing for a use-case when we don't have a token. Right now, all requests to the API are made with a token, but for OAuth, we'll be requesting the token (i.e. making a request without the token)
  4. The last commit creates a new type of Account (oauth)

Related to #560 (closed)

Edited by Tomas Vik

Merge request reports

Loading