File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 23
23
24
24
<script type="text/javascript">
25
25
//========= Input Vars ================================
26
- var clientId = 'xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'; //Update with your app registration's Application ID (step 2.6)
27
- var replyUri = 'http://localhost:8081'; //Where you will receive the token. (step 2.5)
28
- var logoutRedirectUri = 'http://localhost:8081'; //Where you return upon signout. Update if you are hosting your webpage somewhere else
29
- var azDevApi = 'https://dev.azure.com/myaccount /_apis/projects?api-version=2 .0'; //Update if want to access a different vsts API
30
- var azDevApId = '499b84ac-1321-427f-aa17-267ca6975798'; //Do not change. Needed to get a Azure DevOps ADAL access token.
26
+ var clientId = 'xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'; //Update with your app registration's Application ID (step 2.6)
27
+ var replyUri = 'http://localhost:8081'; //Where you will receive the token. (step 2.5)
28
+ var logoutRedirectUri = 'http://localhost:8081'; //Where you return upon signout. Update if you are hosting your webpage somewhere else
29
+ var azureDevOpsApi = 'https://dev.azure.com/organization /_apis/projects?api-version=4 .0'; //Update if want to access a different vsts API
30
+ var azureDevOpsAppId = '499b84ac-1321-427f-aa17-267ca6975798'; //Do not change. Needed to get a Azure DevOps ADAL access token.
31
31
//=====================================================
32
32
33
33
// Set up ADAL
55
55
56
56
// Get an access token to VSTS
57
57
authContext.acquireToken(
58
- azDevResourceId ,
58
+ azureDevOpsResourceId ,
59
59
function (error, token) {
60
60
if (error || !token) {
61
61
document.getElementById('api_response').textContent =
You can’t perform that action at this time.
0 commit comments