Skip to content

username/password authentication - errors not presented to user #5851

@macfarla

Description

@macfarla

eg if you get your password wrong, you get an empty response rather than "Invalid password".

Stepping through it with a debugger I can see the "Invalid password" error but it gets lost somewhere


➜  ~ curl -X POST --data '{"username":"username1","password":"NotMyPassword"}' http://localhost:8545/login


➜  ~ curl -X POST --data '{"username":"username1","password":"MyPassword"}' http://localhost:8545/login


{"token":"redacted"}%
➜  ~

latest besu
following instructions here to setup username/password auth https://besu.hyperledger.org/stable/public-networks/how-to/use-besu-api/authenticate#json-rpc-permissions

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4Low (ex: Node doesn't start up when the configuration file has unexpected "end-of-line" character)RPCTeamGrootGH issues worked on by Groot TeamTeamRevenantGH issues worked on by Revenant TeambugSomething isn't workinggood first issueGood for newcomerssnackSmaller coding task - less than a day for an experienced devux

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions