CDB-1788 lots of logic for the callback oauth