OAuth support

Added OAuth support.