Visual Studio Online OAuth Client Sample

This app shows how to authorize a user to authorize an app and then to request an access token to access Visual Studio Online on their behalf.

Start »

Setup

Before you start, make sure to:

  1. Register a client app with Visual Studio Online
  2. Update the web.config of this web app and set the App ID, Scope, App Secret, and Callback URL set in the registered app. The callback URL should be https://site/oauth/callback
    • App ID: 1A0DD228-1940-44D3-972B-B15CED3DDE08
    • Scope: preview_api_all preview_msdn_licensing
    • Callback URL: https://vsoalmoauthtest.azurewebsites.net/oauth/callback22

Learn about auth in Visual Studio Online

Visual Studio Online support authorization via OAuth 2.0. Learn more about how you can develop apps that securely access your user's Visual Studio Online projects and perform tasks on their behalf.

Learn more »