I would like to implement an authentication between two parties (for example a user and a bank) but I stumbled upon a "design/implementation" doubt. I need to do this steps:
I've created the server [with nodejs->express] which provides endpoints for:
The question is:
Now, are banks that needs to call with the right sequence my endpoints to authenticate users or should I create a new Endpoint like /authenticate and in some way automatically retrieve the user+bank requests to my endpoints? The first option seems more like an api service but I don't know if it's the only way to do it. And for the second one i have no idea how to do it.
(Sorry for my bad english I'm Italian, I do only know pizza pasta peperoni language)