You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/active-directory/develop/reference-aadsts-error-codes.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,7 +119,7 @@ For example, if you received the error code "AADSTS50058" then do a search in [h
119
119
| AADSTS50055 | InvalidPasswordExpiredPassword - The password is expired. |
120
120
| AADSTS50056 | Invalid or null password -Password does not exist in store for this user. |
121
121
| AADSTS50057 | UserDisabled - The user account is disabled. The account has been disabled by an administrator. |
122
-
| AADSTS50058 | UserInformationNotProvided - This means that a user is not signed in. This is a common error that's expected when a user is unauthenticated and has not yet signed in.</br>If this error is encouraged in an SSO context where the user has previously signed in, this means that the SSO session was either not found or invalid.</br>This error may be returned to the application if prompt=none is specified. |
122
+
| AADSTS50058 | UserInformationNotProvided - This means that a user is not signed in. This is a common error that's expected when a user is unauthenticated and has not yet signed in.</br>If this error is encountered in an SSO context where the user has previously signed in, this means that the SSO session was either not found or invalid.</br>This error may be returned to the application if prompt=none is specified. |
123
123
| AADSTS50059 | MissingTenantRealmAndNoUserInformationProvided - Tenant-identifying information was not found in either the request or implied by any provided credentials. The user can contact the tenant admin to help resolve the issue. |
124
124
| AADSTS50061 | SignoutInvalidRequest - The sign-out request is invalid. |
125
125
| AADSTS50064 | CredentialAuthenticationError - Credential validation on username or password has failed. |
Copy file name to clipboardExpand all lines: articles/cdn/cdn-app-dev-node.md
+20-40Lines changed: 20 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ ms.workload: tbd
13
13
ms.tgt_pltfrm: na
14
14
ms.devlang: na
15
15
ms.topic: how-to
16
-
ms.date: 01/23/2017
16
+
ms.date: 04/02/2021
17
17
ms.author: mazha
18
18
ms.custom: devx-track-js
19
19
---
@@ -24,14 +24,10 @@ ms.custom: devx-track-js
24
24
>
25
25
>
26
26
27
-
You can use the [Azure CDN SDK for Node.js](https://www.npmjs.com/package/azure-arm-cdn) to automate creation and management of CDN profiles and endpoints. This tutorial walks through the creation of a simple Node.js console application that demonstrates several of the available operations. This tutorial is not intended to describe all aspects of the Azure CDN SDK for Node.js in detail.
27
+
You can use the [Azure CDN SDK for JavaScript](https://www.npmjs.com/package/@azure/arm-cdn) to automate creation and management of CDN profiles and endpoints. This tutorial walks through the creation of a simple Node.js console application that demonstrates several of the available operations. This tutorial is not intended to describe all aspects of the Azure CDN SDK for JavaScript in detail.
28
28
29
-
To complete this tutorial, you should already have [Node.js](https://www.nodejs.org)**4.x.x** or higher installed and configured. You can use any text editor you want to create your Node.js application. To write this tutorial, I used [Visual Studio Code](https://code.visualstudio.com).
29
+
To complete this tutorial, you should already have [Node.js](https://www.nodejs.org)**6.x.x** or higher installed and configured. You can use any text editor you want to create your Node.js application. To write this tutorial, I used [Visual Studio Code](https://code.visualstudio.com).
30
30
31
-
> [!TIP]
32
-
> The [completed project from this tutorial](https://code.msdn.microsoft.com/Azure-CDN-SDK-for-Nodejs-c712bc74) is available for download on MSDN.
Our project is now initialized with a *packages.json* file. Our project is going to use some Azure libraries contained in NPM packages. We'll use the Azure Client Runtime for Node.js (ms-rest-azure) and the Azure CDN Client Library for Node.js (azure-arm-cd). Let's add those to the project as dependencies.
47
+
Our project is now initialized with a *packages.json* file. Our project is going to use some Azure libraries contained in NPM packages. We'll use the library for Azure Active Directory authentication in Node.js (@azure/ms-rest-nodeauth) and the Azure CDN Client Library for JavaScript (@azure/arm-cdn). Let's add those to the project as dependencies.
52
48
53
49
```console
54
-
npm install --save ms-rest-azure
55
-
npm install --save azure-arm-cdn
50
+
npm install --save @azure/ms-rest-nodeauth
51
+
npm install --save @azure/arm-cdn
56
52
```
57
53
58
54
After the packages are done installing, the *package.json* file should look similar to this example (version numbers may differ):
@@ -69,8 +65,8 @@ After the packages are done installing, the *package.json* file should look simi
69
65
"author": "Cam Soper",
70
66
"license": "MIT",
71
67
"dependencies": {
72
-
"azure-arm-cdn": "^0.2.1",
73
-
"ms-rest-azure": "^1.14.4"
68
+
"@azure/arm-cdn": "^5.2.0",
69
+
"@azure/ms-rest-nodeauth": "^3.0.0"
74
70
}
75
71
}
76
72
```
@@ -83,8 +79,8 @@ With *app.js* open in our editor, let's get the basic structure of our program w
83
79
1. Add the "requires" for our NPM packages at the top with the following:
84
80
85
81
```javascript
86
-
var msRestAzure =require('ms-rest-azure');
87
-
var cdnManagementClient =require('azure-arm-cdn');
82
+
var msRestAzure =require('@azure/ms-rest-nodeauth');
2. We need to define some constants our methods will use. Add the following. Be sure to replace the placeholders, including the **<angle brackets>**, with your own values as needed.
90
86
@@ -103,23 +99,9 @@ With *app.js* open in our editor, let's get the basic structure of our program w
103
99
104
100
``` javascript
105
101
var credentials = new msRestAzure.ApplicationTokenCredentials(clientId, tenantId, clientSecret);
106
-
var cdnClient = new cdnManagementClient(credentials, subscriptionId);
102
+
var cdnClient = new CdnManagementClient(credentials, subscriptionId);
107
103
```
108
-
109
-
If you are using individual user authentication, these two lines will look slightly different.
110
-
111
-
> [!IMPORTANT]
112
-
> Only use this code sample if you are choosing to have individual user authentication instead of a service principal. Be careful to guard your individual user credentials and keep them secret.
113
-
>
114
-
>
115
-
116
-
``` javascript
117
-
var credentials = new msRestAzure.UserTokenCredentials(clientId,
var cdnClient = new cdnManagementClient(credentials, subscriptionId);
120
-
```
121
-
122
-
Be sure to replace the items in **<angle brackets>** with the correct information. For `<redirect URI>`, use the redirect URI you entered when you registered the application in Azure AD.
104
+
123
105
4. Our Node.js console application is going to take some command-line parameters. Let's validate that at least one parameter was passed.
To see the completed project from this walkthrough, [download the sample](https://code.msdn.microsoft.com/Azure-CDN-SDK-for-Nodejs-c712bc74).
365
346
366
-
To see the reference for the Azure CDN SDK for Node.js, view the [reference](https://azure.github.io/azure-sdk-for-node/azure-arm-cdn/latest/).
347
+
To see the reference for the Azure CDN SDK for JavaScript, view the [reference](https://docs.microsoft.com/javascript/api/@azure/arm-cdn).
367
348
368
-
To find additional documentation on the Azure SDK for Node.js, view the [full reference](https://azure.github.io/azure-sdk-for-node/).
349
+
To find additional documentation on the Azure SDK for JavaScript, view the [full reference](https://docs.microsoft.com/javascript/api/?view=azure-node-latest).
369
350
370
351
Manage your CDN resources with [PowerShell](cdn-manage-powershell.md).
|*:443 *Or*[ServiceTag](../virtual-network/service-tags-overview.md#available-service-tags) - AzureCloud:443 | TCP:443 | Azure Spring Cloud Service Management. | Information of service instance "requiredTraffics" could be known in resource payload, under "networkProfile" section. |
| collector*.newrelic.com | TCP:443/80 | Required networks of New Relic APM agents from US region, also see [APM Agents Networks](https://docs.newrelic.com/docs/using-new-relic/cross-product-functions/install-configure/networks/#agents). |
67
+
| collector*.eu01.nr-data.net | TCP:443/80 | Required networks of New Relic APM agents from EU region, also see [APM Agents Networks](https://docs.newrelic.com/docs/using-new-relic/cross-product-functions/install-configure/networks/#agents). |
59
68
60
69
## See also
61
70
*[Access your application in a private network](access-app-virtual-network.md)
62
-
*[Expose apps using Application Gateway and Azure Firewall](expose-apps-gateway-azure-firewall.md)
71
+
*[Expose apps using Application Gateway and Azure Firewall](expose-apps-gateway-azure-firewall.md)
0 commit comments