Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GUI prompts for GitLab authentication #621

Merged
merged 7 commits into from
Mar 2, 2022

Conversation

mjcheetham
Copy link
Collaborator

@mjcheetham mjcheetham commented Feb 9, 2022

Add GUI prompts on all platforms for GitLab authentication. GUI prompts are required because if GCM/Git is invoked from an IDE without a terminal, there is no way for the user to authenticate for GitLab.

Browser Token Password
image image image

Note that if the host is "gitlab.com" then the instance name is not shown.
The "Sign Up" link takes you to https://about.gitlab.com.

Add shared UI project for GitLab. Project contains the shared view
models and commands for the main auth prompt.
Implement an Avalonia-based UI helper for GitLab and include this in Mac
and Linux packages/installers.
Implement a WPF-based UI helper for GitLab and include this in the
Windows installers.
Invoke the GitLab UI helper if the current session is GUI interactive,
the user has not disabled GUI prompts, and the helper is found.
@mjcheetham mjcheetham added enhancement New feature or request gui Specific to graphical user interface controls host:gitlab Specific to the GitLab host provider labels Feb 9, 2022
Copy link
Contributor

@derrickstolee derrickstolee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Do we want @hickford to give this a quick test?

@hickford
Copy link
Contributor

hickford commented Feb 9, 2022

Looks good. Do we want @hickford to give this a quick test?

Works for me.

Copy link
Contributor

@ldennington ldennington left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

B-e-a-utiful!

src/shared/GitLab.UI.Avalonia/Program.cs Outdated Show resolved Hide resolved
On custom GitLab instances, don't show the GitLab "fox" logo, only the
logotype. We also replace the old PNG logo with SVG/vector versions for
better display on high-resolution displays.

Ensure we only show the "sign up" link for GitLab.com

fix wpf
Pass the instance URL argument to the GitLab UI helper.
@mjcheetham
Copy link
Collaborator Author

New screenshots with SVG-based logo and logotype, as well as for gitlab.com and custom instances (for both Avalonia and WPF implementations).

gitlab.com Other Instances
image
image
image
image

@mjcheetham mjcheetham merged commit 1a50e2c into git-ecosystem:main Mar 2, 2022
@mjcheetham mjcheetham deleted the gitlab-ui branch March 2, 2022 15:59
@ldennington ldennington mentioned this pull request Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gui Specific to graphical user interface controls host:gitlab Specific to the GitLab host provider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants