Implemented server side passport functionality.