Plugin Directory

Changeset 2819117


Ignore:
Timestamp:
11/16/2022 02:46:01 PM (3 years ago)
Author:
yashyadav247
Message:

release for 2.4.2

Location:
wp-rest-api-authentication
Files:
167 added
4 edited

Legend:

Unmodified
Added
Removed
  • wp-rest-api-authentication/trunk/README.txt

    r2811079 r2819117  
    44Requires at least: 3.0.1
    55Tested up to: 6.1
    6 Stable tag: 2.4.1
     6Stable tag: 2.4.2
    77Requires PHP: 5.6
    88License: MIT/Expat
     
    184184== Changelog ==
    185185
     186= 2.4.2 =
     187* Bug Fixes
     188
    186189= 2.4.1 =
    187190* WordPress 6.1 compatibility
  • wp-rest-api-authentication/trunk/admin/class-miniorange-api-authentication-admin.php

    r2811049 r2819117  
    316316
    317317    function save_temporary_data(){
    318        
    319         if (sanitize_text_field($_SERVER['REQUEST_METHOD']) === 'POST' &&  current_user_can('administrator') && wp_verify_nonce($_SERVER['nonce'] , 'mo_rest_api_temporal_data_nonce' ) ) {
     318        update_option('mini_00',$_POST['nonce']);
     319        if (sanitize_text_field($_SERVER['REQUEST_METHOD']) === 'POST' &&  current_user_can('administrator') && wp_verify_nonce($_POST['nonce'] , 'mo_rest_api_temporal_data_nonce' ) ) {
    320320            if(isset($_POST['auth_method']) && sanitize_text_field($_POST['auth_method']) == 'basic_auth'){
    321321
  • wp-rest-api-authentication/trunk/admin/partials/flow/class-mo-api-authentication-basic-oauth.php

    r2811049 r2819117  
    55       
    66        if(  ( isset( $headers['AUTHORIZATION'] ) && $headers['AUTHORIZATION'] !== "" ) || ( isset( $headers['AUTHORISATION'] ) && $headers['AUTHORISATION'] !== "" ) ) {
     7           
    78            if ( isset( $headers['AUTHORIZATION'] ) && $headers['AUTHORIZATION'] !== "" ) {
    89                $authorization_header = explode( " ", $headers['AUTHORIZATION'] );
     
    1213           
    1314            if( isset( $authorization_header[0] ) && (strcasecmp( $authorization_header[0], 'Basic' ) == 0 ) && isset( $authorization_header[1] ) && $authorization_header[1] !== "" ) {
     15               
    1416                $encoded_creds = $authorization_header[1];
    1517                $decoded_cred_string = sanitize_text_field(base64_decode($encoded_creds));
     
    1719
    1820                if( isset($creds[0]) && isset($creds[1]) ) {
     21                   
    1922                    if( get_option( 'mo_api_authentication_authentication_key' ) == 'uname_pass' || !empty($_GET['mo_rest_api_test_config']) ) {
     23                       
    2024                        // username and password
    2125                        $uname = $creds[0];
  • wp-rest-api-authentication/trunk/miniorange-api-authentication.php

    r2811057 r2819117  
    44 * Plugin URI:        wp-rest-api-authentication
    55 * Description:       WordPress REST API Authentication secures rest API access for unauthorized users using OAuth 2.0, Basic Auth, JWT, API Key. Also reduces potential attack factors to the respective site.
    6  * Version:           2.4.1
     6 * Version:           2.4.2
    77 * Author:            miniOrange
    88 * Author URI:        https://www.miniorange.com
     
    2121 * Rename this for your plugin and update it as you release new versions.
    2222 */
    23 define( 'MINIORANGE_API_AUTHENTICATION_VERSION', '2.3.0' );
     23define( 'MINIORANGE_API_AUTHENTICATION_VERSION', '2.4.2' );
    2424// require_once plugin_dir_path( __FILE__ ) . 'admin/partials/support/class-mo-api-authentication-feedback.php';
    2525
Note: See TracChangeset for help on using the changeset viewer.