refactor: Add AuthType to support OAuth
Description
- Right now we just refactor gitlabToken to this new type
- Should only effect the example app since the main app
doesn't pass along
gitlabToken - !240 (closed)
This MR updates the following packages:
-
web-ide-typesnow has anauth: AuthConfigproperty instead ofgitlabToken: string -
gitlab-api-clientclasses now accept anauth: AuthProviderinstead of justgitlabToken: string -
vscode-mediator-commandsnow receives anauth: AuthProviderin it's factory function which it will pass to the client it creates -
vscode-bootstrapneeds to convert theAuthConfigit receives fromClientOnlyConfiginto anAuthProviderand give it to the mediator command facotry -
exampleneeds to use the newauth: AuthConfigproperty instead ofgitlabToken: string
Screenshot
PLEASE NOTE: There's currently a bug on main with the example app. You'll need to apply this MR !245 (merged) for it to work.
curl https://gitlab.com/gitlab-org/gitlab-web-ide/-/merge_requests/245.diff | git apply
Edited by Paul Slaughter