Modify ObtainToken to provide a full session