An example on how to implement a 2-legged security solution in nodejs with express and passport