Fixing OAuth authentication