Hero OS login fails — auth methods not registered in hero_osis_openrpc #39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
In the production container, Hero OS login fails with:
Investigation
Socket path is NOT the issue
The socket path nesting (
~/hero/var/sockets/root/hero_osis_openrpc.sock) is by design — bothhero_osis_openrpcandhero_osis_httpuse the same{context}/subdirectory convention. The full proxy chain works:All return proper JSON-RPC responses.
Real cause: AuthService methods not registered
rpc.discoverreports 449 methods includingAuthService.get_challenge,AuthService.login, etc. But calling them returnsMethod not found:The AuthService methods exist in the OpenRPC schema/discovery spec but their handlers are not actually registered in hero_osis_openrpc. This means the auth domain needs to be connected to actual implementations.
Frontend also uses wrong method name
The hero_os_ui auth island calls
identity.getChallengebut the schema defines it asAuthService.get_challenge. Even once the backend registers the handlers, the frontend method name needs to match.Impact
No login possible in the production container. All other RPC methods work correctly through the proxy chain.
Related
Hero OS login fails — osis socket path nesting prevents RPC proxyto Hero OS login fails — auth methods not registered in hero_osis_openrpc