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
{{ message }}
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
The ADAL for node.js library makes it easy for node.js applications to authenticate to AAD in order to access AAD protected web resources. It supports 3 authentication modes shown in the quickstart code below.
3
3
4
4
## Versions
5
-
Current version - 0.1.27
5
+
Current version - 0.1.28
6
6
Minimum recommended version - 0.1.22
7
7
You can find the changes for each version in the [change log](https://github.com/AzureAD/azure-activedirectory-library-for-nodejs/blob/master/changelog.txt).
8
8
@@ -29,6 +29,20 @@ All code is licensed under the Apache 2.0 license and we triage actively on GitH
29
29
30
30
``` $ npm install adal-node ```
31
31
32
+
### Configure the logging
33
+
34
+
```javascript
35
+
var logging =require('adal-node').Logging;
36
+
37
+
logging.setLoggingOptions({
38
+
log:function(level, message, error) {
39
+
// provide your own implementation of the log function
40
+
},
41
+
level:logging.LOGGING_LEVEL.VERBOSE, // provide the logging level
42
+
loggingWithPII:false// Determine if you want to log personal identitification information. The default value is false.
43
+
});
44
+
```
45
+
32
46
### Authorization Code
33
47
34
48
See the [website sample](https://github.com/MSOpenTech/azure-activedirectory-library-for-nodejs/blob/master/sample/website-sample.js) for a complete bare bones express based web site that makes use of the code below.
See the [client credentials sample](https://github.com/MSOpenTech/azure-activedirectory-library-for-nodejs/blob/master/sample/client-credentials-sample.js).
* @property {LoggingCallback} [log] The function to call when ADAL generates a log entry.
27
27
* @property {LoggingLevel} [level] The maximum level of log entries to generate.
28
+
* @property {boolean} [loggingWithPII] This value indicts if personal identity related information such as token and claims should be logged. The default value is false.
0 commit comments