Login callbacks changed, because webkit does not support cross origin request that returns 302.