WordPress plugin

The WordPress integration is a plugin backed by the PHP SDK.

Install

  1. Place the plugin directory at wp-content/plugins/vine-uap/.
  2. Install the PHP SDK dependencies so the plugin can load vineeid/php-sdk.
  3. Activate the plugin in WordPress.
  4. Open Settings > Vine Login and provide the Vine API key.

Use it

The plugin injects a Login with Vine action into the normal WordPress login page. Add this shortcode to place the flow elsewhere:

text
[vine_login]

The plugin stores the UAP flow secret in a WordPress transient, polls through its REST API, and signs in the matching WordPress user after approval. Keep the plugin and its dependencies on the server; do not expose its configured API key in page scripts.