X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fcommunication.js;fp=lib%2Fcommunication.js;h=a9eb66100d2c2ef9525b4dc75bddb31b0769c060;hb=91ccbf258b9f21a3c82f714c5fbb965644279bf4;hp=d52d784690917d503e852309f4256650cfc4c60e;hpb=6765ef39a3020bf6b3aa0b55a9d2eeacf3807af6;p=squeep-indieauth-helper diff --git a/lib/communication.js b/lib/communication.js index d52d784..a9eb661 100644 --- a/lib/communication.js +++ b/lib/communication.js @@ -792,15 +792,15 @@ class Communication { /** * 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`, });