-
When call a procedure, such as user authentication, if password invalid, should the callee answer an ERROR message, or an YIELD message to the dealer? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
I think questions such as this are better asked under the Discussions area for this repo: https://github.com/wamp-proto/wamp-proto/discussions |
Beta Was this translation helpful? Give feedback.
-
not sure I fully understand what you refer to: a) Client connects and performs WAMP authentication OR In case you meant a): When a client supplies wrong credentials during WAMP authentication, such as a wrong password, Crossbar will send WAMP authentication is happening as part of the initial WAMP opening handshake, which are all WAMP messages before https://wamp-proto.org/wamp_latest_ietf.html#name-session-establishment At that point, the router may only either send If it sends |
Beta Was this translation helpful? Give feedback.
-
Em... I think this is really up to you as a developer to choose the way. I think this question is the same as the one asked in the context of HTTP REST API: what HTTP status codes should be returned for different operations and cases? Someone prefers to always return 200/OK and then in the body has something like Here is the same situation. Just choose one approach, describe it in dev docs, and follow it. |
Beta Was this translation helpful? Give feedback.
Em... I think this is really up to you as a developer to choose the way.
How does site login RPC differs from idk get the shopping cart one? IDK.
I think this question is the same as the one asked in the context of HTTP REST API: what HTTP status codes should be returned for different operations and cases? Someone prefers to always return 200/OK and then in the body has something like
error: true
, others return 403/Forbidden and error description in the body. But you can find a plenty examples of both around :)Here is the same situation. Just choose one approach, describe it in dev docs, and follow it.