Plugin Directory

Changeset 2179651


Ignore:
Timestamp:
10/24/2019 09:53:43 PM (6 years ago)
Author:
heremobilitydemand
Message:

Switched to a newer (and more secure) auth API

Location:
here-mobility/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • here-mobility/trunk/heremobility.php

    r2177392 r2179651  
    88The Web Widget supports pickup location, destination, and required departure time, in addition, your users can also  customize their ride according to any special requirements they have from suitcases to number of passengers.
    99The HERE Mobility Web Widget connects to the Mobility Marketplace to find the most relevant rides matching your users' requests and displays them to your users to choose from and book. To activate your Web Widget, please create an account(https://developer.mobility.here.com/signup) and request your app credentials.
    10  * Version: 1.0.17
     10 * Version: 1.0.18
    1111 * Author: HERE Mobility
    1212 * Author URI: https://mobility.here.com/
     
    1717class HereMobility
    1818{
    19     const PLUGIN_VERSION = '1.0.17';
     19    const PLUGIN_VERSION = '1.0.18';
    2020    const SHORTCODE_WIDGET_TAG = 'here_panel';
    2121    const SHORTCODE_LINK_TAG = 'here_link';
     
    379379    function get_auth_data($appKey, $appSecret, $user)
    380380    {
    381         $expiration = time() + 60 * 60;
     381        $timeNow = time();
    382382
    383383        $hash = hash_hmac(
    384             'sha256',
     384            'sha384',
    385385            implode(
    386386                '.',
    387387                array(
    388388                    base64_encode($appKey),
    389                     base64_encode($user),
    390                     $expiration
     389                    $timeNow
    391390                )
    392391            ),
     
    395394
    396395        return array(
    397             'application_key' => $appKey,
     396            'app_id' => $appKey,
    398397            'user_id' => $user,
    399             'expiration' => $expiration,
    400             'hash' => $hash
     398            'request_timestamp' => $timeNow,
     399            'hmac' => $hash
    401400        );
    402401    }
  • here-mobility/trunk/readme.txt

    r2177392 r2179651  
    66Requires at least: 4.0
    77Tested up to: 5.0.8
    8 Stable tag: 1.0.17
     8Stable tag: 1.0.18
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    8484== Changelog ==
    8585
     86= 1.0.18 =
     87* Switched to a newer (and more secure) auth API
     88
    8689= 1.0.17 =
    8790* Fixed an issue with settings popup in classic editor
Note: See TracChangeset for help on using the changeset viewer.