Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

UI that can handle authentication and picking a server/account #2374

Open
@jcansdale

Description

@jcansdale

There are several places within our UI where we need to authenticate a user and/or select a GitHub/GitHub Enterprise server.

User Stories

Activities

  • Cloning a repo
  • Creating a repo
  • Publishing a repo

Stories

  • As a unauthenticated user I want to sign in while [Activity].
  • As a GitHub.com authenticated user, I want sign into a GitHub Enterprise account while [Activity].
  • As a GitHub.com authenticated user, I want sign into another GitHub.com account while [Activity].
  • As a GitHub Enterprise authenticated user, I want sign into a GitHub.com account while [Activity].
  • As a GitHub Enterprise authenticated user, I want sign into another account on the same GitHub Enterprise server while [Activity].
  • As a GitHub Enterprise authenticated user, I want sign into another GitHub Enterprise server while [Activity].

Current Workflows

After the initial authentication, how to authenticate with a different GitHub or GitHub Enterprise account is isn't very intuitive. The user must discover the Team Explorer - Connect page and then click on Manage Connections > Connect to GitHub.

Publish to GitHub workflow

  1. User is invited to choose a Git service for publishing

image

  1. Clicking on notification gives option to Publish to GitHub

image

  1. Clicking Publish to GitHub opens sign in dialog and then shows publish view

image

  1. If user is already logged in there is no option to authenticate or choose a different server

image

  1. User must somehow discover the connect page (green plug on tool bar) and Connect to GitHub or Sign out

image

Clone from GitHub workflow

  1. User clicks in GitHub icon from Clone or checkout code

image

  1. When not already authenticated user is presented with sign in dialog

image

  1. When already authenticated user has option to Sign in as top of dialog

image

(The GitHub.com and / or GitHub Enterprise tabs are selectively shown if user has authenticated with that server)

Create a repository workflow

  1. User clicks GitHub > Create from Team Explorer - Connect page

image

  1. Create is tied to a GitHub/GitHub Enterprise account so dialog knows where to create the repository

image

How Azure DevOps works

Clone workflow

  • Uses an account picker drop-down with option to Add an account...

image

Publish workflow

  • Uses same account picker drop down as clone

image

  • Drop-down always includes option to Add an account...

image

  • This is what it shows if the user hasn't authenticated

image

Possible solutions

  • Add a common container for dialogs to support authentication and account selection
  • Mimic the Azure User Control to support logging in and picking accounts

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions