openid-client
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -1359,7 +1359,10 @@ const { inspect } = require('util'); | ||
const response = await request.call(this, { | ||
headers: initialAccessToken | ||
? { | ||
Authorization: authorizationHeaderValue(initialAccessToken), | ||
} | ||
: undefined, | ||
headers: { | ||
Accept: 'application/json', | ||
...(initialAccessToken | ||
? { | ||
Authorization: authorizationHeaderValue(initialAccessToken), | ||
} | ||
: undefined), | ||
}, | ||
responseType: 'json', | ||
@@ -1384,3 +1387,6 @@ json: metadata, | ||
responseType: 'json', | ||
headers: { Authorization: authorizationHeaderValue(registrationAccessToken) }, | ||
headers: { | ||
Authorization: authorizationHeaderValue(registrationAccessToken), | ||
Accept: 'application/json', | ||
}, | ||
}); | ||
@@ -1387,0 +1393,0 @@ const responseBody = processResponse(response, { bearer: true }); |
@@ -9,3 +9,2 @@ const jose = require('jose'); | ||
const request = require('./request'); | ||
const instance = require('./weak_cache'); | ||
const { keystores } = require('./weak_cache'); | ||
@@ -204,2 +203,10 @@ const merge = require('./merge'); | ||
url: targetUrl, | ||
headers: { | ||
...(endpoint !== 'revocation' | ||
? { | ||
Accept: 'application/json', | ||
} | ||
: undefined), | ||
...requestOpts.headers, | ||
}, | ||
}, | ||
@@ -206,0 +213,0 @@ { mTLS, DPoP }, |
@@ -40,2 +40,5 @@ const objectHash = require('object-hash'); | ||
url: this.jwks_uri, | ||
headers: { | ||
Accept: 'application/json', | ||
}, | ||
}) | ||
@@ -42,0 +45,0 @@ .finally(() => { |
@@ -93,2 +93,5 @@ const { inspect } = require('util'); | ||
searchParams: { resource, rel: 'http://openid.net/specs/connect/1.0/issuer' }, | ||
headers: { | ||
Accept: 'application/json', | ||
}, | ||
}); | ||
@@ -146,2 +149,5 @@ const body = processResponse(response); | ||
url: uri, | ||
headers: { | ||
Accept: 'application/json', | ||
}, | ||
}); | ||
@@ -171,2 +177,5 @@ const body = processResponse(response); | ||
url: wellKnownUri, | ||
headers: { | ||
Accept: 'application/json', | ||
}, | ||
}); | ||
@@ -173,0 +182,0 @@ const body = processResponse(response); |
{ | ||
"name": "openid-client", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "OpenID Connect Relying Party (RP, Client) implementation for Node.js runtime, supports passportjs", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
130074
3555