Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Wire up the new Device Flow feature #40

Merged
merged 10 commits into from
Apr 17, 2016

Conversation

olivierdagenais
Copy link
Contributor

OAuth 2.0 Device Flow is now wired up and will be attempted as a last resort.

Manual testing

  1. Add a Git remote to a clone of this repo pointing to a VSTS account that uses Microsoft Accounts (MSA). Let's call the remote msarepo.

  2. Run git push msarepo.

  3. When the JavaFX browser opens, immediately close the window. This used to completely abort the GCM4ML; now we get something like this:

    ------------------------------------
    OAuth 2.0 Device Flow authentication
    ------------------------------------
    To complete the authentication process, please open a web browser and visit the following URI:
    https://aka.ms/devicelogin
    When prompted, enter the following code:
    E3P3CAVVR
    Once authenticated and authorized, execution will continue.
    
  4. Follow the instructions to authenticate.

  5. The push succeeds.

  6. Add a Git remote to a clone of this repo pointing to a VSTS account that uses Azure Active Directory (AAD). Let's call the remote aadrepo.

  7. Run git push aadrepo.

  8. When the JavaFX browser opens, immediately close the window. This used to completely abort the GCM4ML; now we get something like this:

    ------------------------------------
    OAuth 2.0 Device Flow authentication
    ------------------------------------
    To complete the authentication process, please open a web browser and visit the following URI:
    https://aka.ms/devicelogin
    When prompted, enter the following code:
    EYCSHYPEC
    Once authenticated and authorized, execution will continue.
    
  9. Follow the instructions to authenticate.

  10. The push succeeds.

Mission accomplished!

@olivierdagenais olivierdagenais force-pushed the wire_up_device_flow_feature branch from 117fe0c to 85f67cb Compare April 17, 2016 03:06
@olivierdagenais olivierdagenais merged commit 19f91a7 into master Apr 17, 2016
@olivierdagenais olivierdagenais deleted the wire_up_device_flow_feature branch April 18, 2016 00:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants