client-oauth2
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -401,11 +401,11 @@ /* global define */ | ||
} else { | ||
var parts = opts.uri.split('#') | ||
var parts = opts.url.split('#') | ||
var token = 'access_token=' + this.accessToken | ||
var uri = parts[0].replace(/[?&]access_token=[^&#]/, '') | ||
var url = parts[0].replace(/[?&]access_token=[^&#]/, '') | ||
var fragment = parts[1] ? '#' + parts[1] : '' | ||
// Prepend the correct query string parameter to the uri. | ||
opts.uri = uri + (uri.indexOf('?') > -1 ? '&' : '?') + token + fragment | ||
// Prepend the correct query string parameter to the url. | ||
opts.url = url + (url.indexOf('?') > -1 ? '&' : '?') + token + fragment | ||
// Attempt to avoid storing the uri in proxies, since the access token | ||
// Attempt to avoid storing the url in proxies, since the access token | ||
// is exposed in the query parameters. | ||
@@ -412,0 +412,0 @@ opts.headers.Pragma = 'no-store' |
{ | ||
"name": "client-oauth2", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Straight-forward library for executing OAuth 2.0 flows and making API requests.", | ||
@@ -5,0 +5,0 @@ "main": "client-oauth2.js", |
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