From 6e3e6621f14a726d26a1ca2af2d890d8c2e057ad Mon Sep 17 00:00:00 2001 From: German Lena Date: Thu, 14 May 2015 14:35:27 -0300 Subject: [PATCH] updated info headers --- WP_Auth0.php | 3 ++- lib/WP_Auth0_Api_Client.php | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/WP_Auth0.php b/WP_Auth0.php index d9372216..abff869b 100644 --- a/WP_Auth0.php +++ b/WP_Auth0.php @@ -2,7 +2,7 @@ /** * Plugin Name: Wordpress Auth0 Integration * Description: Implements the Auth0 Single Sign On solution into Wordpress - * Version: 1.2 + * Version: 1.2.1 * Author: Auth0 * Author URI: https://auth0.com */ @@ -12,6 +12,7 @@ define('WPA0_PLUGIN_URL', trailingslashit(plugin_dir_url(__FILE__) )); define('WPA0_LANG', 'wp-auth0'); define('AUTH0_DB_VERSION', 2); +define('WPA0_VERSION', '1.2.1'); class WP_Auth0 { public static function init(){ diff --git a/lib/WP_Auth0_Api_Client.php b/lib/WP_Auth0_Api_Client.php index 770eb49c..9c6a46cf 100644 --- a/lib/WP_Auth0_Api_Client.php +++ b/lib/WP_Auth0_Api_Client.php @@ -6,8 +6,11 @@ protected static function get_info_headers() { global $wp_version; return array( - 'User-Agent' => 'PHP/' . phpversion(), - 'Auth0-Client', 'PHP/WordPress/' . $wp_version + 'User-Agent' => 'PHP/' . phpversion() . ' (WordPress:' . $wp_version . ')', + 'Auth0-Client' => base64_encode(json_encode(array( + 'name' => 'wp-auth0', + 'version' => WPA0_VERSION + ))) ); }