You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I confirm that this is an issue rather than a question.
Bug report
Currently, it appears we can use Admin API calls over JSON RPC/HTTP requests only if we disable "Local Admin API Authentication". Enabling it results in rejected calls with "No Authorization", even if we supply a valid token.
Steps to reproduce
Enable "Local Admin API Authentication" in the UI (http://<hyperion-ip>:8090/#conf_network)
Submit the same request (with or without the token) and it succeeds.
What is expected?
When "Local Admin API Authentication" is enabled, Admin API calls should:
Reject calls without a token
Succeed if the token is valid.
What is actually happening?
When "Local Admin API Authentication" is enabled, Admin API rejects all requests, regardless of if the token is present or not, and if it's done over local network (or even localhost).
The current behavior seems to be hard-coded to set Admin auth state at the start of the service:
JsonAPI::handleConfigCommand checks for _adminAuthorized but _adminAuthorized isn't set in API::isTokenAuthorized()
So maybe simple fix is set _adminAuthorized = _authorized; at the end of API::isTokenAuthorized()
Bug report
Currently, it appears we can use Admin API calls over JSON RPC/HTTP requests only if we disable "Local Admin API Authentication". Enabling it results in rejected calls with "No Authorization", even if we supply a valid token.
Steps to reproduce
http://<hyperion-ip>:8090/#conf_network
)which results in
What is expected?
When "Local Admin API Authentication" is enabled, Admin API calls should:
What is actually happening?
When "Local Admin API Authentication" is enabled, Admin API rejects all requests, regardless of if the token is present or not, and if it's done over local network (or even localhost).
The current behavior seems to be hard-coded to set Admin auth state at the start of the service:
hyperion.ng/libsrc/api/API.cpp
Line 86 in a4d98fd
System
The text was updated successfully, but these errors were encountered: