Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Add Authorization header to inventory service HTTP requests #456

Closed
mturley opened this issue Mar 19, 2021 · 1 comment
Closed

Add Authorization header to inventory service HTTP requests #456

mturley opened this issue Mar 19, 2021 · 1 comment
Assignees

Comments

@mturley
Copy link
Collaborator

mturley commented Mar 19, 2021

https://bugzilla.redhat.com/show_bug.cgi?id=1929140

Per @jortel, we'll need to set the Authorization: Bearer <token> header on all requests to the inventory service, like we do in the kube-client here: https://github.com/konveyor/lib-ui/blob/main/src/modules/kube-client/resources/common.ts#L152

@mturley mturley self-assigned this Mar 19, 2021
@mturley
Copy link
Collaborator Author

mturley commented Apr 6, 2021

This is actually already implemented in the useAuthorizedFetch hook (see https://github.com/mturley/forklift-ui/blob/main/src/app/queries/fetchHelpers.ts#L28). I missed that when the BZ was being opened.

@mturley mturley closed this as completed Apr 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant