Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure authenticating against openhim-core using openhim-mediator-utils version 0.4.0 #118

Open
njuguna-n opened this issue Mar 19, 2024 · 1 comment
Assignees
Labels
Type: Bug Fix something that isn't working as intended

Comments

@njuguna-n
Copy link

njuguna-n commented Mar 19, 2024

When trying to register a mediator in openhim-core it fails with Failed to register the mediator! AxiosError: Request failed with status code 401. More context in slack.

@njuguna-n
Copy link
Author

The latest version uses genAuthHeaders to authenticate the registration request. The documentation mentions that This can only be used after the .authenticate() function has been called for this user. which I don't think is happening. Calling the authenticate function before the registration call does not solve it so looking into alternative solutions.

@njuguna-n njuguna-n self-assigned this Mar 19, 2024
@njuguna-n njuguna-n changed the title Failure authenticaing against openhim-core using openhim-mediator-utils version 0.4.0 Failure authenticating against openhim-core using openhim-mediator-utils version 0.4.0 Mar 19, 2024
@andrablaj andrablaj added the Type: Bug Fix something that isn't working as intended label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Fix something that isn't working as intended
Projects
Status: Todo
Development

No branches or pull requests

2 participants