/**
* Verify a token with an IdP endpoint, using the Authentication header supplied.
* @param {URL} introspectionUrlObj
- * @param {String} authenticationHeader
+ * @param {String} authorizationHeader
* @param {String} token
*/
- async introspectToken(introspectionUrlObj, authenticationHeader, token) {
+ async introspectToken(introspectionUrlObj, authorizationHeader, token) {
const _scope = _fileScope('introspectToken');
const formData = common.formData({ token });
const postIntrospectConfig = Communication._axiosConfig('POST', introspectionUrlObj, formData, {}, {
- [Enum.Header.Authentication]: authenticationHeader,
+ [Enum.Header.Authorization]: authorizationHeader,
[Enum.Header.ContentType]: Enum.ContentType.ApplicationForm,
[Enum.Header.Accept]: `${Enum.ContentType.ApplicationJson}, ${Enum.ContentType.Any};q=0.1`,
});
Header: {
Accept: 'Accept',
+ Authorization: 'Authorization',
ContentType: 'Content-Type',
Link: 'Link',
UserAgent: 'User-Agent',
+ WWWAuthenticate: 'WWW-Authenticate',
},
};
\ No newline at end of file