Comparing version 0.1.28 to 0.2.0
@@ -0,0 +0,0 @@ Version 0.1.28 |
@@ -0,0 +0,0 @@ import * as http from "http"; |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -89,6 +89,7 @@ /* | ||
*/ | ||
function AuthenticationContext(authority, validateAuthority, cache) { | ||
function AuthenticationContext(authority, validateAuthority, cache, aadApiVersion) { | ||
var validate = (validateAuthority === undefined || validateAuthority === null || validateAuthority); | ||
this._authority = new Authority(authority, validate); | ||
this._authority.aadApiVersion = aadApiVersion; | ||
this._oauth2client = null; | ||
@@ -95,0 +96,0 @@ this._correlationId = null; |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -73,2 +73,3 @@ /* | ||
function OAuth2Client(callContext, authority) { | ||
this._aadApiVersion = authority.aadApiVersion === undefined? '1.0' : authority.aadApiVersion; | ||
this._tokenEndpoint = authority.tokenEndpoint; | ||
@@ -91,3 +92,3 @@ this._deviceCodeEndpoint = authority.deviceCodeEndpoint; | ||
var parameters = {}; | ||
parameters[OAuth2Parameters.AAD_API_VERSION] = '1.0'; | ||
parameters[OAuth2Parameters.AAD_API_VERSION] = this._aadApiVersion; | ||
@@ -107,3 +108,3 @@ tokenUrl.search = querystring.stringify(parameters); | ||
var parameters = {}; | ||
parameters[OAuth2Parameters.AAD_API_VERSION] = '1.0'; | ||
parameters[OAuth2Parameters.AAD_API_VERSION] = this._aadApiVersion; | ||
@@ -110,0 +111,0 @@ deviceCodeUrl.search = querystring.stringify(parameters); |
@@ -0,0 +0,0 @@ /* |
@@ -587,5 +587,6 @@ /* | ||
var expires_in = userCodeInfo[DeviceCodeResponseParameters.EXPIRES_IN]; | ||
if (interval <= 0) { | ||
callback(new Error('invalid refresh interval')); | ||
return; | ||
} | ||
@@ -592,0 +593,0 @@ |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -13,3 +13,3 @@ { | ||
}, | ||
"version": "0.1.28", | ||
"version": "0.2.0", | ||
"description": "Windows Azure Active Directory Client Library for node", | ||
@@ -31,21 +31,21 @@ "keywords": [ | ||
"@types/node": "^8.0.47", | ||
"async": "^2.6.3", | ||
"date-utils": "*", | ||
"jws": "3.x.x", | ||
"request": "^2.88.0", | ||
"underscore": ">= 1.3.1", | ||
"uuid": "^3.1.0", | ||
"request": ">= 2.52.0", | ||
"underscore": ">= 1.3.1", | ||
"xmldom": ">= 0.1.x", | ||
"xpath.js": "~1.1.0", | ||
"async": ">=0.6.0" | ||
"xpath.js": "~1.1.0" | ||
}, | ||
"devDependencies": { | ||
"jshint": "*", | ||
"mocha": "*", | ||
"nock": "*", | ||
"sinon": "*", | ||
"typescript": "^2.6.1", | ||
"@types/mocha": "^2.2.44", | ||
"@types/nock": "^8.2.1", | ||
"@types/mocha": "^2.2.44", | ||
"@types/sinon": "^2.3.7", | ||
"@types/underscore": "^1.8.4", | ||
"@types/sinon": "^2.3.7" | ||
"jshint": "^2.10.2", | ||
"mocha": "*", | ||
"nock": "^10.0.6", | ||
"sinon": "^7.3.2", | ||
"typescript": "^2.6.1" | ||
}, | ||
@@ -52,0 +52,0 @@ "scripts": { |
@@ -15,3 +15,3 @@ # Windows Azure Active Directory Authentication Library (ADAL) for Node.js | ||
We leverage [Stack Overflow](http://stackoverflow.com/) to work with the community on supporting Azure Active Directory and its SDKs, including this one! We highly recommend you ask your questions on Stack Overflow (we're all on there!) Also browser existing issues to see if someone has had your question before. | ||
We leverage [Stack Overflow](http://stackoverflow.com/) to work with the community on supporting Azure Active Directory and its SDKs, including this one! We highly recommend you ask your questions on Stack Overflow (we're all on there!) Also browse existing issues to see if someone has had your question before. | ||
@@ -35,5 +35,10 @@ We recommend you use the "adal" tag so we can see it! Here is the latest Q&A on Stack Overflow for ADAL: [http://stackoverflow.com/questions/tagged/adal](http://stackoverflow.com/questions/tagged/adal) | ||
#### Personal Identifiable Information (PII) & Organizational Identifiable Information (OII) | ||
By default, ADAL logging does not capture or log any PII or OII. The library allows app developers to turn this on by configuring the `loggingWithPII` flag in the logging options. By turning on PII or OII, the app takes responsibility for safely handling highly-sensitive data and complying with any regulatory requirements. | ||
```javascript | ||
var logging = require('adal-node').Logging; | ||
//PII or OII logging disabled. Default Logger does not capture any PII or OII. | ||
logging.setLoggingOptions({ | ||
@@ -44,4 +49,13 @@ log: function(level, message, error) { | ||
level: logging.LOGGING_LEVEL.VERBOSE, // provide the logging level | ||
loggingWithPII: false // Determine if you want to log personal identitification information. The default value is false. | ||
loggingWithPII: false // Determine if you want to log personal identification information. The default value is false. | ||
}); | ||
//PII or OII logging enabled. | ||
logging.setLoggingOptions({ | ||
log: function(level, message, error) { | ||
// provide your own implementation of the log function | ||
}, | ||
level: logging.LOGGING_LEVEL.VERBOSE, | ||
loggingWithPII: true | ||
}); | ||
``` | ||
@@ -48,0 +62,0 @@ |
@@ -0,0 +0,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
160
226484
27
4881
+ Addedasync@2.6.4(transitive)
+ Addedlodash@4.17.21(transitive)
- Removedasync@3.2.6(transitive)
Updatedasync@^2.6.3
Updatedrequest@^2.88.0