Fixes an issue in ignoring the manual Authorization header in the XHR interceptor
Related issues
183
Test Plan
getAccessToken
✓ should return undefined without an active session
✓ should return a token with an active header-based session
✓ should not return a token with an active cookie-based session
✓ should not return a token after signout
✓ should return refreshed token if called with an expired session
✓ should return undefined if refresh fails
fetch using header (manually added Authorization header)
✓ should ignore the auth header if it matches the current session
✓ should ignore the auth header if it matches the current session even if the casing is different
✓ should ignore the auth header if it matches the current (revoked) session
✓ should not ignore the auth header if it doesn't match the current session
✓ should not ignore the auth header if we are not doing interception
XHR using header (manually added Authorization header)
✓ should ignore the auth header if it matches the current session
✓ should ignore the auth header if it matches the current session even if the casing is different
✓ should ignore the auth header if it matches the current (revoked) session
✓ should not ignore the auth header if it doesn't match the current session
✓ should not ignore the auth header if we are not doing interception
axios with axios interceptor using header (manually added Authorization header)
✓ should ignore the auth header if it matches the current session
✓ should ignore the auth header if it matches the current session even if the casing is different
✓ should ignore the auth header if it matches the current (revoked) session
✓ should not ignore the auth header if it doesn't match the current session
✓ should not ignore the auth header if we are not doing interception
axios using header (manually added Authorization header)
✓ should ignore the auth header if it matches the current session
✓ should ignore the auth header if it matches the current session even if the casing is different
✓ should ignore the auth header if it matches the current (revoked) session
✓ should not ignore the auth header if it doesn't match the current session
✓ should not ignore the auth header if we are not doing interception
angular HTTPClient using header (manually added Authorization header)
✓ should ignore the auth header if it matches the current session
✓ should ignore the auth header if it matches the current session even if the casing is different
✓ should ignore the auth header if it matches the current (revoked) session
✓ should not ignore the auth header if it doesn't match the current session
✓ should not ignore the auth header if we are not doing interception
fetch using cookie (manually added Authorization header)
✓ should not ignore the auth header
XHR using cookie (manually added Authorization header)
✓ should not ignore the auth header
axios with axios interceptor using cookie (manually added Authorization header)
✓ should not ignore the auth header
axios using cookie (manually added Authorization header)
✓ should not ignore the auth header
angular HTTPClient using cookie (manually added Authorization header)
✓ should not ignore the auth header
Documentation changes
(If relevant, please create a PR in our docs repo, or create a checklist here highlighting the necessary changes)
Checklist for important updates
[ ] Changelog has been updated
[x] frontendDriverInterfaceSupported.json file has been updated (if needed)
Along with the associated array in lib/ts/version.ts
[ ] Changes to the version if needed
In package.json
In package-lock.json
In lib/ts/version.ts
[x] Had run npm run build-pretty
[x] Had installed and ran the pre-commit hook
[x] Issue this PR against the latest non released version branch.
To know which one it is, run find the latest released tag (git tag) in the format vX.Y.Z, and then find the latest branch (git branch --all) whose X.Y is greater than the latest released tag.
If no such branch exists, then create one from the latest released branch.
Summary of change
Related issues
183
Test Plan
getAccessToken ✓ should return undefined without an active session ✓ should return a token with an active header-based session ✓ should not return a token with an active cookie-based session ✓ should not return a token after signout ✓ should return refreshed token if called with an expired session ✓ should return undefined if refresh fails
fetch using header (manually added Authorization header) ✓ should ignore the auth header if it matches the current session ✓ should ignore the auth header if it matches the current session even if the casing is different ✓ should ignore the auth header if it matches the current (revoked) session ✓ should not ignore the auth header if it doesn't match the current session ✓ should not ignore the auth header if we are not doing interception
XHR using header (manually added Authorization header) ✓ should ignore the auth header if it matches the current session ✓ should ignore the auth header if it matches the current session even if the casing is different ✓ should ignore the auth header if it matches the current (revoked) session ✓ should not ignore the auth header if it doesn't match the current session ✓ should not ignore the auth header if we are not doing interception
axios with axios interceptor using header (manually added Authorization header) ✓ should ignore the auth header if it matches the current session ✓ should ignore the auth header if it matches the current session even if the casing is different ✓ should ignore the auth header if it matches the current (revoked) session ✓ should not ignore the auth header if it doesn't match the current session ✓ should not ignore the auth header if we are not doing interception
axios using header (manually added Authorization header) ✓ should ignore the auth header if it matches the current session ✓ should ignore the auth header if it matches the current session even if the casing is different ✓ should ignore the auth header if it matches the current (revoked) session ✓ should not ignore the auth header if it doesn't match the current session ✓ should not ignore the auth header if we are not doing interception
angular HTTPClient using header (manually added Authorization header) ✓ should ignore the auth header if it matches the current session ✓ should ignore the auth header if it matches the current session even if the casing is different ✓ should ignore the auth header if it matches the current (revoked) session ✓ should not ignore the auth header if it doesn't match the current session ✓ should not ignore the auth header if we are not doing interception
XHR using cookie (manually added Authorization header) ✓ should not ignore the auth header
axios with axios interceptor using cookie (manually added Authorization header) ✓ should not ignore the auth header
angular HTTPClient using cookie (manually added Authorization header) ✓ should not ignore the auth header
Documentation changes
(If relevant, please create a PR in our docs repo, or create a checklist here highlighting the necessary changes)
Checklist for important updates
frontendDriverInterfaceSupported.json
file has been updated (if needed)lib/ts/version.ts
package.json
package-lock.json
lib/ts/version.ts
npm run build-pretty
git tag
) in the formatvX.Y.Z
, and then find the latest branch (git branch --all
) whoseX.Y
is greater than the latest released tag.