OAuth improvements