New server side flow implementation