Connecting client to oauth server