Plugin Directory

Changeset 1924100


Ignore:
Timestamp:
08/13/2018 01:12:33 PM (8 years ago)
Author:
loginradius
Message:

Changed HTTP Methods to UPPER CASE

Location:
loginradius-customer-identity-and-access-management
Files:
236 added
17 edited

Legend:

Unmodified
Added
Removed
  • loginradius-customer-identity-and-access-management/trunk/authentication/lib/LoginRadiusSDK/Advance/CloudAPI.php

    r1809024 r1924100  
    5151        $options = array('authentication' => 'key');
    5252        $url = LR_CLOUD_ENDPOINT . "/ciam/appInfo";
    53        
    54         return Functions::apiClient($url, '', $options);       
    55     }
     53        return Functions::apiClient($url, '', $options);
     54    } 
     55   
    5656}
  • loginradius-customer-identity-and-access-management/trunk/authentication/lib/LoginRadiusSDK/Advance/WebHooksAPI.php

    r1809024 r1924100  
    5050    public function subscribeWebHooks($target_url, $event = 'Login')
    5151    {
    52         return $this->apiClientHandler('webhook', array('apikey' => Functions::getApiKey(), 'apisecret' => Functions::getApiSecret()), array('method' => 'post', 'post_data' => json_encode(array('TargetUrl' => $target_url, 'Event' => $event)), 'content_type' => 'json'));
     52        return $this->apiClientHandler('webhook', array('apikey' => Functions::getApiKey(), 'apisecret' => Functions::getApiSecret()), array('method' => 'POST', 'post_data' => json_encode(array('TargetUrl' => $target_url, 'Event' => $event)), 'content_type' => 'json'));
    5353    }
    5454   
     
    7474    public function unsubscribeWebHooks($target_url, $event = 'Login')
    7575    {
    76         return $this->apiClientHandler('webhook', array('apikey' => Functions::getApiKey(), 'apisecret' => Functions::getApiSecret()), array('method' => 'delete', 'post_data' => json_encode(array('TargetUrl' => $target_url, 'Event' => $event)), 'content_type' => 'json'));
     76        return $this->apiClientHandler('webhook', array('apikey' => Functions::getApiKey(), 'apisecret' => Functions::getApiSecret()), array('method' => 'DELETE', 'post_data' => json_encode(array('TargetUrl' => $target_url, 'Event' => $event)), 'content_type' => 'json'));
    7777    }
    7878
  • loginradius-customer-identity-and-access-management/trunk/authentication/lib/LoginRadiusSDK/Clients/DefaultHttpClient.php

    r1809024 r1924100  
    66 * @package : DefaultHttpClient
    77 * @author : LoginRadius Team
    8  * @version : 4.5.1
     8 * @version : 4.5.3
    99 * @license : https://opensource.org/licenses/MIT
    1010 */
     
    5555            $request_url .= Functions::queryBuild($query_array);
    5656        }
    57 
    5857        if (in_array('curl', get_loaded_extensions())) {
    5958            $response = $this->curlApiMethod($request_url, $options);
     
    8483    private function curlApiMethod($request_url, $options = array()) {
    8584        $ssl_verify = isset($options['ssl_verify']) ? $options['ssl_verify'] : false;
    86         $method = isset($options['method']) ? strtolower($options['method']) : 'get';
     85        $method = isset($options['method']) ? strtoupper($options['method']) : 'GET';
    8786        $data = isset($options['post_data']) ? $options['post_data'] : array();
    8887        $content_type = isset($options['content_type']) ? trim($options['content_type']) : 'x-www-form-urlencoded';
     
    108107            curl_setopt($curl_handle, CURLOPT_POSTFIELDS, (($content_type == 'json') ? $data : Functions::queryBuild($data)));
    109108
    110             if ($method == 'post') {
     109            if ($method == 'POST') {
    111110                curl_setopt($curl_handle, CURLOPT_POST, 1);
    112111            }
    113             elseif ($method == 'delete') {
    114                 curl_setopt($curl_handle, CURLOPT_CUSTOMREQUEST, "delete");
     112            elseif ($method == 'DELETE') {
     113                curl_setopt($curl_handle, CURLOPT_CUSTOMREQUEST, "DELETE");
    115114            }
    116             elseif ($method == 'put') {
     115            elseif ($method == 'PUT') {
    117116                curl_setopt($curl_handle, CURLOPT_CUSTOMREQUEST, "PUT");
    118117            }
     
    139138    private function fsockopenApiMethod($request_url, $options = array()) {
    140139        $ssl_verify = isset($options['ssl_verify']) ? $options['ssl_verify'] : false;
    141         $method = isset($options['method']) ? strtolower($options['method']) : 'get';
     140        $method = isset($options['method']) ? strtoupper($options['method']) : 'GET';
    142141        $data = isset($options['post_data']) ? $options['post_data'] : array();
    143142        $content_type = isset($options['content_type']) ? $options['content_type'] : 'form_params';
     
    148147        $optionsArray = array('http' =>
    149148          array(
    150             'method' => strtoupper($method),
     149            'method' => $method,
    151150            'timeout' => 50,
    152151            'ignore_errors' => true,           
  • loginradius-customer-identity-and-access-management/trunk/authentication/lib/LoginRadiusSDK/Clients/IHttpClient.php

    r1809024 r1924100  
    66 * @package : IHttpClient
    77 * @author : LoginRadius Team
    8  * @version : 4.5.1
     8 * @version : 4.5.3
    99 * @license : https://opensource.org/licenses/MIT
    1010 */
  • loginradius-customer-identity-and-access-management/trunk/authentication/lib/LoginRadiusSDK/CustomerRegistration/Authentication/AuthCustomObjectAPI.php

    r1809024 r1924100  
    4141    public function createCustomObject($access_token, $objectname, $data, $fields = '*')
    4242    {
    43         return $this->apiClientHandler("CustomObject", array('access_token' => $access_token,'ObjectName' => $objectname, 'fields' => $fields), array('method' => 'post', 'post_data' => $data, 'content_type' => 'json'));
     43        return $this->apiClientHandler("CustomObject", array('access_token' => $access_token,'ObjectName' => $objectname, 'fields' => $fields), array('method' => 'POST', 'post_data' => $data, 'content_type' => 'json'));
    4444    }
    4545
     
    5656    public function updateCustomObjectData($access_token, $object_name, $object_record_id, $update_type, $data, $fields = '*')
    5757    {
    58         return $this->apiClientHandler("CustomObject/" . $object_record_id, array('access_token' => $access_token,'ObjectName' => $object_name,'updatetype' => $update_type, 'fields' => $fields), array('method' => 'put', 'post_data' => $data, 'content_type' => 'json'));
     58        return $this->apiClientHandler("CustomObject/" . $object_record_id, array('access_token' => $access_token,'ObjectName' => $object_name,'updatetype' => $update_type, 'fields' => $fields), array('method' => 'PUT', 'post_data' => $data, 'content_type' => 'json'));
    5959    }
    6060
     
    9292    public function deleteCustomObjectSet($access_token, $object_name, $object_record_id, $fields = '*')
    9393    {
    94         return $this->apiClientHandler("CustomObject/" . $object_record_id, array('access_token' => $access_token, 'ObjectName' => $object_name, 'fields' => $fields), array('method' => 'delete', 'post_data' => true));
     94        return $this->apiClientHandler("CustomObject/" . $object_record_id, array('access_token' => $access_token, 'ObjectName' => $object_name, 'fields' => $fields), array('method' => 'DELETE', 'post_data' => true));
    9595    }
    9696
  • loginradius-customer-identity-and-access-management/trunk/authentication/lib/LoginRadiusSDK/CustomerRegistration/Authentication/UserAPI.php

    r1809024 r1924100  
    6262     */
    6363    public function authLoginByEmail($data, $verification_url = '', $login_url = '', $email_template = '', $g_recaptcha_response = '', $fields = '*') {
    64         return $this->apiClientHandler("login", array('verificationUrl' => $verification_url, 'loginUrl' => $login_url, 'emailTemplate' => $email_template, 'g-recaptcha-response' => $g_recaptcha_response, 'fields' => $fields), array('method' => 'post', 'post_data' => $data, 'content_type' => 'json'));
     64        return $this->apiClientHandler("login", array('verificationUrl' => $verification_url, 'loginUrl' => $login_url, 'emailTemplate' => $email_template, 'g-recaptcha-response' => $g_recaptcha_response, 'fields' => $fields), array('method' => 'POST', 'post_data' => $data, 'content_type' => 'json'));
    6565    }
    6666
     
    9595     */
    9696    public function authLoginByUsername($data, $verification_url = '', $login_url = '', $email_template = '', $g_recaptcha_response = '', $fields = '*') {
    97         return $this->apiClientHandler("login", array('verificationUrl' => $verification_url, 'loginUrl' => $login_url, 'emailTemplate' => $email_template, 'g-recaptcha-response' => $g_recaptcha_response, 'fields' => $fields), array('method' => 'post', 'post_data' => $data, 'content_type' => 'json'));
     97        return $this->apiClientHandler("login", array('verificationUrl' => $verification_url, 'loginUrl' => $login_url, 'emailTemplate' => $email_template, 'g-recaptcha-response' => $g_recaptcha_response, 'fields' => $fields), array('method' => 'POST', 'post_data' => $data, 'content_type' => 'json'));
    9898    }
    9999
     
    128128     */
    129129    public function authLoginByPhone($data, $login_url = '', $sms_template = '', $g_recaptcha_response = '', $fields = '*') {
    130         return $this->apiClientHandler("login", array('loginUrl' => $login_url, 'smstemplate' => $sms_template, 'g-recaptcha-response' => $g_recaptcha_response, 'fields' => $fields), array('method' => 'post', 'post_data' => $data, 'content_type' => 'json'));
     130        return $this->apiClientHandler("login", array('loginUrl' => $login_url, 'smstemplate' => $sms_template, 'g-recaptcha-response' => $g_recaptcha_response, 'fields' => $fields), array('method' => 'POST', 'post_data' => $data, 'content_type' => 'json'));
    131131    }
    132132
     
    143143        $sott = new SOTT();
    144144        $encrypt = $sott->encrypt();
    145         return $this->apiClientHandler("register", array('sott' => $encrypt, 'verificationUrl' => $verification_url, 'emailTemplate' => $email_template, 'smsTemplate' => $sms_template, 'fields' => $fields), array('method' => 'post', 'post_data' => $userprofile, 'content_type' => 'json'));
     145        return $this->apiClientHandler("register", array('sott' => $encrypt, 'verificationUrl' => $verification_url, 'emailTemplate' => $email_template, 'smsTemplate' => $sms_template, 'fields' => $fields), array('method' => 'POST', 'post_data' => $userprofile, 'content_type' => 'json'));
    146146    }
    147147
     
    156156     */
    157157    public function registerByEmail($userprofile, $sott, $verification_url = '', $email_template = '', $fields = '*') {
    158         return $this->apiClientHandler("register", array('verificationurl' => $verification_url, 'emailtemplate' => $email_template, 'fields' => $fields), array('method' => 'post', 'post_data' => $userprofile, 'content_type' => 'json', 'X-LoginRadius-Sott' => $sott));
     158        return $this->apiClientHandler("register", array('verificationurl' => $verification_url, 'emailtemplate' => $email_template, 'fields' => $fields), array('method' => 'POST', 'post_data' => $userprofile, 'content_type' => 'json', 'X-LoginRadius-Sott' => $sott));
    159159    }
    160160
     
    168168     */
    169169    public function resendEmailVerification($email, $verification_url = '', $email_template = '', $fields = '*') {
    170         return $this->apiClientHandler("register", array('verificationUrl' => $verification_url, 'emailTemplate' => $email_template, 'fields' => $fields), array('method' => 'put', 'post_data' => json_encode(array('email' => $email)), 'content_type' => 'json'));
     170        return $this->apiClientHandler("register", array('verificationUrl' => $verification_url, 'emailTemplate' => $email_template, 'fields' => $fields), array('method' => 'PUT', 'post_data' => json_encode(array('email' => $email)), 'content_type' => 'json'));
    171171    }
    172172
     
    191191     */
    192192    public function updateProfile($access_token, $data, $verification_url = '', $email_template = '', $fields = '*') {
    193         return $this->apiClientHandler("account", array('verificationUrl' => $verification_url, 'emailTemplate' => $email_template, 'access_token' => $access_token, 'fields' => $fields), array('method' => 'put', 'post_data' => $data, 'content_type' => 'json'));
     193        return $this->apiClientHandler("account", array('verificationUrl' => $verification_url, 'emailTemplate' => $email_template, 'access_token' => $access_token, 'fields' => $fields), array('method' => 'PUT', 'post_data' => $data, 'content_type' => 'json'));
    194194    }
    195195
     
    203203     */
    204204    public function deleteAccountByEmailConfirmation($access_token, $delete_url = '', $email_template = '', $fields = '*') {
    205         return $this->apiClientHandler('account', array('access_token' => $access_token, 'deleteUrl' => $delete_url, 'emailTemplate' => $email_template, 'fields' => $fields), array('method' => 'delete', 'post_data' => true));
     205        return $this->apiClientHandler('account', array('access_token' => $access_token, 'deleteUrl' => $delete_url, 'emailTemplate' => $email_template, 'fields' => $fields), array('method' => 'DELETE', 'post_data' => true));
    206206    }
    207207
     
    215215     */
    216216    public function forgotPassword($email, $reset_password_url, $email_template = '', $fields = '*') {
    217         return $this->apiClientHandler("password", array('resetPasswordUrl' => $reset_password_url, 'emailTemplate' => $email_template, 'fields' => $fields), array('method' => 'post', 'post_data' => json_encode(array('email' => $email)), 'content_type' => 'json'));
     217        return $this->apiClientHandler("password", array('resetPasswordUrl' => $reset_password_url, 'emailTemplate' => $email_template, 'fields' => $fields), array('method' => 'POST', 'post_data' => json_encode(array('email' => $email)), 'content_type' => 'json'));
    218218    }
    219219
     
    226226     */
    227227    public function forgotPasswordByOtp($phone, $sms_template = '', $fields = '*') {
    228         return $this->apiClientHandler("password/otp", array('smsTemplate' => $sms_template, 'fields' => $fields), array('method' => 'post', 'post_data' => json_encode(array('phone' => $phone)), 'content_type' => 'json'));
     228        return $this->apiClientHandler("password/otp", array('smsTemplate' => $sms_template, 'fields' => $fields), array('method' => 'POST', 'post_data' => json_encode(array('phone' => $phone)), 'content_type' => 'json'));
    229229    }
    230230
     
    238238     */
    239239    public function resetPassword($vtoken, $password, $welcome_email_template = '', $fields = '*') {
    240         return $this->apiClientHandler("password", array('fields' => $fields), array('method' => 'put', 'post_data' => json_encode(array('ResetToken' => $vtoken, 'password' => $password, 'welcomeEmailTemplate' => $welcome_email_template)), 'content_type' => 'json'));
     240        return $this->apiClientHandler("password", array('fields' => $fields), array('method' => 'PUT', 'post_data' => json_encode(array('ResetToken' => $vtoken, 'password' => $password, 'welcomeEmailTemplate' => $welcome_email_template)), 'content_type' => 'json'));
    241241    }
    242242
     
    250250     */
    251251    public function resetPasswordByOtp($phone, $otp, $password, $fields = '*') {
    252         return $this->apiClientHandler("password/otp", array('fields' => $fields), array('method' => 'put', 'post_data' => json_encode(array('phone' => $phone, 'otp' => $otp, 'password' => $password)), 'content_type' => 'json'));
     252        return $this->apiClientHandler("password/otp", array('fields' => $fields), array('method' => 'PUT', 'post_data' => json_encode(array('phone' => $phone, 'otp' => $otp, 'password' => $password)), 'content_type' => 'json'));
    253253    }
    254254
     
    263263    public function changeAccountPassword($access_token, $old_password, $new_password, $fields = '*') {
    264264        $data = array('oldpassword' => $old_password, 'newpassword' => $new_password);
    265         return $this->apiClientHandler("password", array('access_token' => $access_token, 'fields' => $fields), array('method' => 'put', 'post_data' => json_encode($data), 'content_type' => 'json'));
     265        return $this->apiClientHandler("password", array('access_token' => $access_token, 'fields' => $fields), array('method' => 'PUT', 'post_data' => json_encode($data), 'content_type' => 'json'));
    266266    }
    267267
     
    278278    public function addEmail($access_token, $email, $type, $verification_url = '', $email_template = '', $fields = '*') {
    279279        $data = array('Email' => $email, 'Type' => $type);
    280         return $this->apiClientHandler("email", array('access_token' => $access_token, 'verificationUrl' => $verification_url, 'emailTemplate' => $email_template, 'fields' => $fields), array('method' => 'post', 'post_data' => json_encode($data), 'content_type' => 'json'));
     280        return $this->apiClientHandler("email", array('access_token' => $access_token, 'verificationUrl' => $verification_url, 'emailTemplate' => $email_template, 'fields' => $fields), array('method' => 'POST', 'post_data' => json_encode($data), 'content_type' => 'json'));
    281281    }
    282282
     
    291291    public function removeEmail($access_token, $email, $fields = '*') {
    292292        $data = array('Email' => $email);
    293         return $this->apiClientHandler("email", array('access_token' => $access_token, 'fields' => $fields), array('method' => 'delete', 'post_data' => json_encode($data), 'content_type' => 'json'));
     293        return $this->apiClientHandler("email", array('access_token' => $access_token, 'fields' => $fields), array('method' => 'DELETE', 'post_data' => json_encode($data), 'content_type' => 'json'));
    294294    }
    295295
     
    324324     */
    325325    public function changeUsername($access_token, $username, $fields = '*') {
    326         return $this->apiClientHandler("username", array('access_token' => $access_token, 'fields' => $fields), array('method' => 'put', 'post_data' => json_encode(array('username' => $username)), 'content_type' => 'json'));
     326        return $this->apiClientHandler("username", array('access_token' => $access_token, 'fields' => $fields), array('method' => 'PUT', 'post_data' => json_encode(array('username' => $username)), 'content_type' => 'json'));
    327327    }
    328328
     
    346346    public function accountLink($access_token, $candidate_token, $fields = '*') {
    347347        $data = array('candidateToken' => $candidate_token);
    348         return $this->apiClientHandler("socialIdentity", array('access_token' => $access_token, 'fields' => $fields), array('method' => 'put', 'post_data' => json_encode($data), 'content_type' => 'json'));
     348        return $this->apiClientHandler("socialIdentity", array('access_token' => $access_token, 'fields' => $fields), array('method' => 'PUT', 'post_data' => json_encode($data), 'content_type' => 'json'));
    349349    }
    350350
     
    359359    public function accountUnlink($access_token, $id, $provider, $fields = '*') {
    360360        $data = array('Provider' => $provider, 'ProviderId' => $id);
    361         return $this->apiClientHandler("socialIdentity", array('access_token' => $access_token, 'fields' => $fields), array('method' => 'delete', 'post_data' => json_encode($data), 'content_type' => 'json'));
     361        return $this->apiClientHandler("socialIdentity", array('access_token' => $access_token, 'fields' => $fields), array('method' => 'DELETE', 'post_data' => json_encode($data), 'content_type' => 'json'));
    362362    }
    363363
     
    392392     */
    393393    public function registerByPhone($userprofile, $sott, $verification_url = '', $sms_template = '', $fields = '*') {
    394         return $this->apiClientHandler("register", array('verificationurl' => $verification_url, 'smstemplate' => $sms_template, 'fields' => $fields), array('method' => 'post', 'post_data' => $userprofile, 'content_type' => 'json', 'X-LoginRadius-Sott' => $sott));
     394        return $this->apiClientHandler("register", array('verificationurl' => $verification_url, 'smstemplate' => $sms_template, 'fields' => $fields), array('method' => 'POST', 'post_data' => $userprofile, 'content_type' => 'json', 'X-LoginRadius-Sott' => $sott));
    395395    }
    396396
     
    403403     */
    404404    public function updatePhone($access_token, $phone, $sms_template = '', $fields = '*') {
    405         return $this->apiClientHandler("phone", array('access_token' => $access_token, 'smsTemplate' => $sms_template, 'fields' => $fields), array('method' => 'put', 'post_data' => json_encode(array('phone' => $phone)), 'content_type' => 'json'));
     405        return $this->apiClientHandler("phone", array('access_token' => $access_token, 'smsTemplate' => $sms_template, 'fields' => $fields), array('method' => 'PUT', 'post_data' => json_encode(array('phone' => $phone)), 'content_type' => 'json'));
    406406    }
    407407
     
    414414     */
    415415    public function resendOTP($phone, $sms_template = '', $fields = '*') {
    416         return $this->apiClientHandler("phone/otp", array('smsTemplate' => $sms_template, 'fields' => $fields), array('method' => 'post', 'post_data' => json_encode(array('phone' => $phone)), 'content_type' => 'json'));
     416        return $this->apiClientHandler("phone/otp", array('smsTemplate' => $sms_template, 'fields' => $fields), array('method' => 'POST', 'post_data' => json_encode(array('phone' => $phone)), 'content_type' => 'json'));
    417417    }
    418418
     
    426426     */
    427427    public function resendOTPByToken($access_token, $phone, $sms_template = '', $fields = '*') {
    428         return $this->apiClientHandler("phone/otp", array('access_token' => $access_token, 'smsTemplate' => $sms_template, 'fields' => $fields), array('method' => 'post', 'post_data' => json_encode(array('phone' => $phone)), 'content_type' => 'json'));
     428        return $this->apiClientHandler("phone/otp", array('access_token' => $access_token, 'smsTemplate' => $sms_template, 'fields' => $fields), array('method' => 'POST', 'post_data' => json_encode(array('phone' => $phone)), 'content_type' => 'json'));
    429429    }
    430430
     
    436436     */
    437437    public function verifyOTP($otp, $phone, $sms_template = '', $fields = '*') {
    438         return $this->apiClientHandler("phone/otp", array('Otp' => $otp, 'smsTemplate' => $sms_template, 'fields' => $fields), array('method' => 'put', 'post_data' => json_encode(array('phone' => $phone)), 'content_type' => 'json'));
     438        return $this->apiClientHandler("phone/otp", array('Otp' => $otp, 'smsTemplate' => $sms_template, 'fields' => $fields), array('method' => 'PUT', 'post_data' => json_encode(array('phone' => $phone)), 'content_type' => 'json'));
    439439    }
    440440
     
    447447     */
    448448    public function verifyOTPByToken($access_token, $otp, $fields = '*') {
    449         return $this->apiClientHandler("phone/otp", array('access_token' => $access_token, 'Otp' => $otp, 'smsTemplate' => $sms_template, 'fields' => $fields), array('method' => 'put', 'post_data' => json_encode(array('phone' => '')), 'content_type' => 'json'));
     449        return $this->apiClientHandler("phone/otp", array('access_token' => $access_token, 'Otp' => $otp, 'smsTemplate' => $sms_template, 'fields' => $fields), array('method' => 'PUT', 'post_data' => json_encode(array('phone' => '')), 'content_type' => 'json'));
    450450    }
    451451
     
    561561     */
    562562    public function twoFAUpdatePhoneNoByOtp($second_factor_auth_token, $data, $sms_template2FA = '', $fields = '*') {
    563         return $this->apiClientHandler("login/2fa", array('SecondFactorAuthenticationToken' => $second_factor_auth_token, 'smsTemplate2FA' => $sms_template2FA, 'fields' => $fields), array('method' => 'put', 'post_data' => $data, 'content_type' => 'json'));
     563        return $this->apiClientHandler("login/2fa", array('SecondFactorAuthenticationToken' => $second_factor_auth_token, 'smsTemplate2FA' => $sms_template2FA, 'fields' => $fields), array('method' => 'PUT', 'post_data' => $data, 'content_type' => 'json'));
    564564    }
    565565
     
    573573     */
    574574    public function twoFAUpdatePhoneNoByToken($access_token, $data, $sms_template = '', $fields = '*') {
    575         return $this->apiClientHandler("account/2fa", array('access_token' => $access_token, 'smsTemplate' => $sms_template, 'fields' => $fields), array('method' => 'put', 'post_data' => $data, 'content_type' => 'json'));
     575        return $this->apiClientHandler("account/2fa", array('access_token' => $access_token, 'smsTemplate' => $sms_template, 'fields' => $fields), array('method' => 'PUT', 'post_data' => $data, 'content_type' => 'json'));
    576576    }
    577577
     
    585585
    586586        $data = array('otpauthenticator' => $otpauthenticator, 'googleauthenticator' => $googleauthenticator);
    587         return $this->apiClientHandler("account/2fa/authenticator", array('access_token' => $access_token, 'fields' => $fields), array('method' => 'delete', 'post_data' => json_encode($data), 'content_type' => 'json'));
     587        return $this->apiClientHandler("account/2fa/authenticator", array('access_token' => $access_token, 'fields' => $fields), array('method' => 'DELETE', 'post_data' => json_encode($data), 'content_type' => 'json'));
    588588    }
    589589
     
    751751     */
    752752    public function simplifiedInstantRegistrationOTPVerification($otp, $data, $sms_template = '', $fields = '*') {
    753         return $this->apiClientHandler("noregistration/phone/verify", array('otp' => $otp, 'smstemplate' => $sms_template, 'fields' => $fields), array('method' => 'put', 'post_data' => $data, 'content_type' => 'json'));
     753        return $this->apiClientHandler("noregistration/phone/verify", array('otp' => $otp, 'smstemplate' => $sms_template, 'fields' => $fields), array('method' => 'PUT', 'post_data' => $data, 'content_type' => 'json'));
    754754    }
    755755
     
    761761     */
    762762    public function validateRegistrationDataCode($data, $fields = '*') {
    763         return $this->apiClientHandler("registrationdata/validatecode", array('fields' => $fields), array('method' => 'post', 'post_data' => $data, 'content_type' => 'json'));
     763        return $this->apiClientHandler("registrationdata/validatecode", array('fields' => $fields), array('method' => 'POST', 'post_data' => $data, 'content_type' => 'json'));
    764764    }
    765765
     
    836836     */
    837837    public function authResetPasswordBySecurityQuestion($data, $fields = '*') {
    838         return $this->apiClientHandler("password/securityanswer", array('fields' => $fields), array('method' => 'put', 'post_data' => $data, 'content_type' => 'json'));
     838        return $this->apiClientHandler("password/securityanswer", array('fields' => $fields), array('method' => 'PUT', 'post_data' => $data, 'content_type' => 'json'));
    839839    }
    840840   
     
    855855   
    856856    public function authResetPasswordBySecurityAnswerAndEmail($data, $fields = '*') {
    857         return $this->apiClientHandler("password/securityanswer", array('fields' => $fields), array('method' => 'put', 'post_data' => $data, 'content_type' => 'json'));
     857        return $this->apiClientHandler("password/securityanswer", array('fields' => $fields), array('method' => 'PUT', 'post_data' => $data, 'content_type' => 'json'));
    858858    }
    859859   
     
    874874   
    875875    public function authResetPasswordBySecurityAnswerAndPhone($data, $fields = '*') {
    876         return $this->apiClientHandler("password/securityanswer", array('fields' => $fields), array('method' => 'put', 'post_data' => $data, 'content_type' => 'json'));
     876        return $this->apiClientHandler("password/securityanswer", array('fields' => $fields), array('method' => 'PUT', 'post_data' => $data, 'content_type' => 'json'));
    877877    }
    878878   
     
    893893   
    894894    public function authResetPasswordBySecurityAnswerAndUserName($data, $fields = '*') {
    895         return $this->apiClientHandler("password/securityanswer", array('fields' => $fields), array('method' => 'put', 'post_data' => $data, 'content_type' => 'json'));
     895        return $this->apiClientHandler("password/securityanswer", array('fields' => $fields), array('method' => 'PUT', 'post_data' => $data, 'content_type' => 'json'));
    896896    }
    897897
     
    908908     */
    909909    public function updateSecurityQuestionByAccessToken($access_token, $data, $fields = '*') {
    910         return $this->apiClientHandler("account", array('access_token' => $access_token, 'fields' => $fields), array('method' => 'put', 'post_data' => $data, 'content_type' => 'json'));
     910        return $this->apiClientHandler("account", array('access_token' => $access_token, 'fields' => $fields), array('method' => 'PUT', 'post_data' => $data, 'content_type' => 'json'));
    911911    }
    912912
  • loginradius-customer-identity-and-access-management/trunk/authentication/lib/LoginRadiusSDK/CustomerRegistration/Management/AccountAPI.php

    r1809024 r1924100  
    216216     */
    217217    public function create($data, $fields = '*') {
    218         return $this->apiClientHandler("", array('fields' => $fields), array('method' => 'post', 'post_data' => $data, 'content_type' => 'json'));
     218        return $this->apiClientHandler("", array('fields' => $fields), array('method' => 'POST', 'post_data' => $data, 'content_type' => 'json'));
    219219    }
    220220
     
    408408     */
    409409    public function update($uid, $data, $is_null_support = 'false', $fields = '*') {
    410         return $this->apiClientHandler('/' . $uid, array('nullsupport' => $is_null_support, 'fields' => $fields), array('method' => 'put', 'post_data' => $data, 'content_type' => 'json'));
     410        return $this->apiClientHandler('/' . $uid, array('nullsupport' => $is_null_support, 'fields' => $fields), array('method' => 'PUT', 'post_data' => $data, 'content_type' => 'json'));
    411411    }
    412412
     
    419419     */
    420420    public function delete($uid, $fields = '*') {
    421         return $this->apiClientHandler('/' . $uid, array('fields' => $fields), array('method' => 'delete', 'post_data' => true));
     421        return $this->apiClientHandler('/' . $uid, array('fields' => $fields), array('method' => 'DELETE', 'post_data' => true));
    422422    }
    423423
     
    432432    public function setPassword($uid, $password, $fields = '*') {
    433433        $data = array('password' => $password);
    434         return $this->apiClientHandler("/" . $uid . "/password", array('fields' => $fields), array('method' => 'put', 'post_data' => json_encode($data), 'content_type' => 'json'));
     434        return $this->apiClientHandler("/" . $uid . "/password", array('fields' => $fields), array('method' => 'PUT', 'post_data' => json_encode($data), 'content_type' => 'json'));
    435435    }
    436436
     
    511511   
    512512    public function invalidateEmail($uid, $data, $fields = '*') {
    513         return $this->apiClientHandler("/" . $uid . '/invalidateemail', array('fields' => $fields), array('method' => 'put', 'post_data' => $data, 'content_type' => 'json'));
     513        return $this->apiClientHandler("/" . $uid . '/invalidateemail', array('fields' => $fields), array('method' => 'PUT', 'post_data' => $data, 'content_type' => 'json'));
    514514    }
    515515     
     
    535535    public function getEmailVerificationToken($email, $fields = '*') {
    536536        $data = json_encode(['Email' => $email]);       
    537         return $this->apiClientHandler('/verify/token', array('fields' => $fields), array('method' => 'post', 'post_data' => $data, 'content_type' => 'json'));
     537        return $this->apiClientHandler('/verify/token', array('fields' => $fields), array('method' => 'POST', 'post_data' => $data, 'content_type' => 'json'));
    538538    }
    539539   
     
    548548    public function getForgotPasswordToken($email, $fields = '*') {
    549549        $data = json_encode(['Email' => $email]); 
    550         return $this->apiClientHandler('/forgot/token', array('fields' => $fields), array('method' => 'post', 'post_data' => $data, 'content_type' => 'json'));
     550        return $this->apiClientHandler('/forgot/token', array('fields' => $fields), array('method' => 'POST', 'post_data' => $data, 'content_type' => 'json'));
    551551    }
    552552
     
    562562    public function removeEmailByUidAndEmail($uid, $email, $fields = '*') {
    563563        $data = json_encode(['Email' => $email]); 
    564         return $this->apiClientHandler('/' . $uid . '/email', array('fields' => $fields), array('method' => 'delete', 'post_data' => $data, 'content_type' => 'json'));
     564        return $this->apiClientHandler('/' . $uid . '/email', array('fields' => $fields), array('method' => 'DELETE', 'post_data' => $data, 'content_type' => 'json'));
    565565    }
    566566   
     
    582582   
    583583    public function updateOrInsertEmailByUid($uid, $data, $fields = '*') {       
    584         return $this->apiClientHandler('/' . $uid . '/email', array('fields' => $fields), array('method' => 'put', 'post_data' => $data, 'content_type' => 'json'));
     584        return $this->apiClientHandler('/' . $uid . '/email', array('fields' => $fields), array('method' => 'PUT', 'post_data' => $data, 'content_type' => 'json'));
    585585    }
    586586
     
    593593    public function removeOrResetGoogleAuthenticator($uid, $otpauthenticator, $googleauthenticator, $fields = '*') {
    594594        $data = array('otpauthenticator' => $otpauthenticator, 'googleauthenticator' => $googleauthenticator);
    595         return $this->apiClientHandler("/2FA/authenticator", array('uid' => $uid, 'fields' => $fields), array('method' => 'delete', 'post_data' => json_encode($data), 'content_type' => 'json'));
     595        return $this->apiClientHandler("/2FA/authenticator", array('uid' => $uid, 'fields' => $fields), array('method' => 'DELETE', 'post_data' => json_encode($data), 'content_type' => 'json'));
    596596    }
    597597
     
    624624     */
    625625    public function resetPhoneIdVerification($uid, $data, $fields = '*') {
    626         return $this->apiClientHandler('/' . $uid . '/invalidatephone', array('fields' => $fields), array('method' => 'put', 'post_data' => $data, 'content_type' => 'json'));
     626        return $this->apiClientHandler('/' . $uid . '/invalidatephone', array('fields' => $fields), array('method' => 'PUT', 'post_data' => $data, 'content_type' => 'json'));
    627627    }
    628628
     
    663663     */
    664664    public function updateSecurityQuestionByUid($uid, $data, $fields = '*') {
    665         return $this->apiClientHandler("/" . $uid, array('fields' => $fields), array('method' => 'put', 'post_data' => $data, 'content_type' => 'json'));
     665        return $this->apiClientHandler("/" . $uid, array('fields' => $fields), array('method' => 'PUT', 'post_data' => $data, 'content_type' => 'json'));
    666666    }
    667667   
  • loginradius-customer-identity-and-access-management/trunk/authentication/lib/LoginRadiusSDK/CustomerRegistration/Management/CustomObjectAPI.php

    r1809024 r1924100  
    4242    public function insert($uid, $object_name, $data, $fields = '*')
    4343    {
    44         return $this->apiClientHandler($uid . '/customObject/', array('ObjectName' => $object_name, 'fields' => $fields), array('method' => 'post', 'post_data' => $data, 'content_type' => 'json'));
     44        return $this->apiClientHandler($uid . '/customObject/', array('ObjectName' => $object_name, 'fields' => $fields), array('method' => 'POST', 'post_data' => $data, 'content_type' => 'json'));
    4545    }
    4646
     
    7272    public function updateObjectByRecordID($uid, $object_name, $object_record_id, $update_type, $data, $fields = '*')
    7373    {
    74         return $this->apiClientHandler($uid . '/customObject/' . $object_record_id, array('ObjectName' => $object_name, 'updatetype'=> $update_type, 'fields' => $fields), array('method' => 'put', 'post_data' => $data, 'content_type' => 'json'));
     74        return $this->apiClientHandler($uid . '/customObject/' . $object_record_id, array('ObjectName' => $object_name, 'updatetype'=> $update_type, 'fields' => $fields), array('method' => 'PUT', 'post_data' => $data, 'content_type' => 'json'));
    7575    }
    7676
     
    9898    public function delete($uid, $object_name, $object_record_id, $fields = '*')
    9999    {
    100         return $this->apiClientHandler($uid . '/customObject/' . $object_record_id, array('ObjectName' => $object_name, 'fields' => $fields), array('method' => 'delete', 'post_data' => true));
     100        return $this->apiClientHandler($uid . '/customObject/' . $object_record_id, array('ObjectName' => $object_name, 'fields' => $fields), array('method' => 'DELETE', 'post_data' => true));
    101101    }
    102102
  • loginradius-customer-identity-and-access-management/trunk/authentication/lib/LoginRadiusSDK/CustomerRegistration/Management/CustomRegistrationDataAPI.php

    r1809024 r1924100  
    4949     */
    5050    public function addRegistrationData($data, $fields = '*') {
    51         return $this->apiClientHandler("registrationdata", array('fields' => $fields), array('method' => 'post', 'post_data' => $data, 'content_type' => 'json'));
     51        return $this->apiClientHandler("registrationdata", array('fields' => $fields), array('method' => 'POST', 'post_data' => $data, 'content_type' => 'json'));
    5252    }
    5353
     
    8080     */
    8181    public function updateRegistrationData($recordid, $data, $fields = '*') {
    82         return $this->apiClientHandler("registrationdata/" . $recordid, array('fields' => $fields), array('method' => 'put', 'post_data' => $data, 'content_type' => 'json'));
     82        return $this->apiClientHandler("registrationdata/" . $recordid, array('fields' => $fields), array('method' => 'PUT', 'post_data' => $data, 'content_type' => 'json'));
    8383    }
    8484
     
    9090     */
    9191    public function deleteRegistrationData($recordid, $fields = '*') {
    92         return $this->apiClientHandler('registrationdata/' . $recordid, array('fields' => $fields), array('method' => 'delete', 'post_data' => true));
     92        return $this->apiClientHandler('registrationdata/' . $recordid, array('fields' => $fields), array('method' => 'DELETE', 'post_data' => true));
    9393    }
    9494
  • loginradius-customer-identity-and-access-management/trunk/authentication/lib/LoginRadiusSDK/CustomerRegistration/Management/RoleAPI.php

    r1809024 r1924100  
    7373     */
    7474    public function upsertContext($uid, $rolesContext, $fields = '*') {
    75         return $this->apiClientHandler("account/" . $uid . "/rolecontext", array('fields' => $fields), array('method' => 'put', 'post_data' => $rolesContext, 'content_type' => 'json'));
     75        return $this->apiClientHandler("account/" . $uid . "/rolecontext", array('fields' => $fields), array('method' => 'PUT', 'post_data' => $rolesContext, 'content_type' => 'json'));
    7676    }
    7777
     
    8484     */
    8585    public function deleteContextbyContextName($uid, $roleContextName, $fields = '*') {
    86         return $this->apiClientHandler("account/" . $uid . "/rolecontext/" . $roleContextName, array('fields' => $fields), array('method' => 'delete', 'post_data' => true));
     86        return $this->apiClientHandler("account/" . $uid . "/rolecontext/" . $roleContextName, array('fields' => $fields), array('method' => 'DELETE', 'post_data' => true));
    8787    }   
    8888    /**
     
    9696     */
    9797    public function deleteRoleFromContext($uid, $roleContextName, $roles, $fields = '*') {
    98         return $this->apiClientHandler("account/" . $uid . "/rolecontext/" . $roleContextName. "/role", array('fields' => $fields), array('method' => 'delete', 'post_data' => $roles, 'content_type' => 'json'));
     98        return $this->apiClientHandler("account/" . $uid . "/rolecontext/" . $roleContextName. "/role", array('fields' => $fields), array('method' => 'DELETE', 'post_data' => $roles, 'content_type' => 'json'));
    9999    }
    100100    /**
     
    110110     */
    111111    public function deleteAdditionalPermissionFromContext($uid, $roleContextName, $additionalPermission, $fields = '*') {
    112         return $this->apiClientHandler("account/" . $uid . "/rolecontext/" . $roleContextName. "/additionalpermission", array('fields' => $fields), array('method' => 'delete', 'post_data' => $additionalPermission, 'content_type' => 'json'));
     112        return $this->apiClientHandler("account/" . $uid . "/rolecontext/" . $roleContextName. "/additionalpermission", array('fields' => $fields), array('method' => 'DELETE', 'post_data' => $additionalPermission, 'content_type' => 'json'));
    113113    }
    114114
     
    133133     */
    134134    public function create($roles, $fields = '*') {
    135         return $this->apiClientHandler("role", array('fields' => $fields), array('method' => 'post', 'post_data' => $roles, 'content_type' => 'json'));
     135        return $this->apiClientHandler("role", array('fields' => $fields), array('method' => 'POST', 'post_data' => $roles, 'content_type' => 'json'));
    136136    }
    137137
     
    161161     */
    162162    public function addPermission($role, $permissions, $fields = '*') {
    163         return $this->apiClientHandler("role/" . $role . "/permission", array('fields' => $fields), array('method' => 'put', 'post_data' => $permissions, 'content_type' => 'json'));
     163        return $this->apiClientHandler("role/" . $role . "/permission", array('fields' => $fields), array('method' => 'PUT', 'post_data' => $permissions, 'content_type' => 'json'));
    164164    }
    165165
     
    178178     */
    179179    public function removePermission($role, $permissions, $fields = '*') {
    180         return $this->apiClientHandler('role/' . $role . '/permission', array('fields' => $fields), array('method' => 'delete', 'post_data' => $permissions, 'content_type' => 'json'));
     180        return $this->apiClientHandler('role/' . $role . '/permission', array('fields' => $fields), array('method' => 'DELETE', 'post_data' => $permissions, 'content_type' => 'json'));
    181181    }
    182182
     
    199199     */
    200200    public function assignRolesByUid($uid, $data, $fields = '*') {
    201         return $this->apiClientHandler('account/' . $uid . '/role', array('fields' => $fields), array('method' => 'put', 'post_data' => $data, 'content_type' => 'json'));
     201        return $this->apiClientHandler('account/' . $uid . '/role', array('fields' => $fields), array('method' => 'PUT', 'post_data' => $data, 'content_type' => 'json'));
    202202    }
    203203
     
    210210     */
    211211    public function deleteAccountRoles($uid, $data, $fields = '*') {
    212         return $this->apiClientHandler('account/' . $uid . '/role', array('fields' => $fields), array('method' => 'delete', 'post_data' => $data, 'content_type' => 'json'));
     212        return $this->apiClientHandler('account/' . $uid . '/role', array('fields' => $fields), array('method' => 'DELETE', 'post_data' => $data, 'content_type' => 'json'));
    213213    }
    214214
  • loginradius-customer-identity-and-access-management/trunk/authentication/lib/LoginRadiusSDK/CustomerRegistration/Social/AdvanceSocialLoginAPI.php

    r1809024 r1924100  
    189189            'description' => $description
    190190        );
    191         return $this->apiClientHandler("status/trackable", array('access_token' => $access_token, 'fields' => $fields), array('method' => 'post', 'post_data' => json_encode($data), 'content_type' => 'json'));
     191        return $this->apiClientHandler("status/trackable", array('access_token' => $access_token, 'fields' => $fields), array('method' => 'POST', 'post_data' => json_encode($data), 'content_type' => 'json'));
    192192 
    193193    }
  • loginradius-customer-identity-and-access-management/trunk/authentication/lib/LoginRadiusSDK/CustomerRegistration/Social/SocialLoginAPI.php

    r1809024 r1924100  
    448448            'fields' => $fields
    449449        );
    450         return $this->apiClientHandler("status", false, $data, array('method' => 'post', 'post_data' => true));
     450        return $this->apiClientHandler("status", false, $data, array('method' => 'POST', 'post_data' => true));
    451451    }
    452452
     
    478478            'fields' => $fields
    479479        );
    480         return $this->apiClientHandler("message", false, $data, array('method' => 'post', 'post_data' => true));
     480        return $this->apiClientHandler("message", false, $data, array('method' => 'POST', 'post_data' => true));
    481481    }
    482482   
  • loginradius-customer-identity-and-access-management/trunk/authentication/lib/LoginRadiusSDK/LoginRadiusException.php

    r1809024 r1924100  
    66 * @package : LoginRadiusException
    77 * @author : LoginRadius Team
    8  * @version : 4.5.1
     8 * @version : 4.5.3
    99 * @license : https://opensource.org/licenses/MIT
    1010 */
  • loginradius-customer-identity-and-access-management/trunk/authentication/lib/LoginRadiusSDK/Utility/Functions.php

    r1809024 r1924100  
    55 * @package : Functions
    66 * @author : LoginRadius Team
    7  * @version : 4.5.1
     7 * @version : 4.5.3
    88 * @license : https://opensource.org/licenses/MIT
    99 */
     
    2727{
    2828
    29     const version = '4.5.1';
     29    const version = '4.5.3';
    3030
    3131    private static $apikey;
     
    154154    public static function apiClient($path, $query_array = array(), $options = array())
    155155    {
    156 
    157156        global $apiClient_class;
    158157        $merge_options = array_merge($options, self::$options);
  • loginradius-customer-identity-and-access-management/trunk/authentication/lib/WPHttpClient.php

    r1859028 r1924100  
    66 * @package : LoginRadius
    77 * @author : LoginRadius Team
    8  * @version : 3.2.0
     8 * @version : 3.2.2
    99 * @license : https://opensource.org/licenses/MIT
    1010 */
     
    5959       
    6060        $argument = array('timeout' => 500);
    61         $argument['method'] = isset($options['method']) ? strtolower($options['method']) : 'GET';
     61        $argument['method'] = isset($options['method']) ? strtoupper($options['method']) : 'GET';
    6262        $data = isset($options['post_data']) ? $options['post_data'] : array();
    6363        $content_type = isset($options['content_type']) ? trim($options['content_type']) : 'x-www-form-urlencoded';
  • loginradius-customer-identity-and-access-management/trunk/loginradius-ciam.php

    r1859028 r1924100  
    55 * Plugin URI: http://www.loginradius.com
    66 * Description: LoginRadius Customer Identity and Access Management
    7  * Version: 3.2.1
     7 * Version: 3.2.2
    88 * Author: LoginRadius Team
    99 * Created by LoginRadius Development Team on 26/05/2017
     
    1818define('CIAM_PLUGIN_DIR', plugin_dir_path(CIAM_PLUGIN_PATH));
    1919define('CIAM_PLUGIN_URL', plugin_dir_url(CIAM_PLUGIN_PATH));
    20 define('CIAM_PLUGIN_VERSION', '3.2.1');
     20define('CIAM_PLUGIN_VERSION', '3.2.2');
    2121define('CIAM_SETTING_LINK', plugin_basename(__FILE__));
    2222
  • loginradius-customer-identity-and-access-management/trunk/readme.txt

    r1859028 r1924100  
    33Tags: Hosted Registration, CIAM, Authentication, User Registration, Cloud Authentication, Single Sign-On (SSO)
    44Requires at least: 3.5
    5 Tested up to: 4.9.5
    6 Stable tag: 3.2.1
     5Tested up to: 4.9.8
     6Stable tag: 3.2.2
    77License: GPLv2 or later
    88
     
    1313* Users can login via hosted page.
    1414* Log Generation Functionality
     15
     16== Change Log ==
     17= 3.2.2 =
     181) Capitalized calling method names
    1519
    1620== Change Log ==
Note: See TracChangeset for help on using the changeset viewer.