Plugin Directory

Changeset 2952048


Ignore:
Timestamp:
08/11/2023 08:01:49 AM (2 years ago)
Author:
nimeshatxecurify
Message:

Login Using WordPress Users v1.15.1

  • Bug fix - Warning appearing on Service Providers page.
  • Bug fix - Unable to change NameID attribute value.
  • Bug fix - Fixed RelayState characters getting stripped.
  • Bug fix - Fixed configuration tables not being deleted on plugin deletion.
  • Setting more secure cookies at the time of SSO.
  • Updated support email address.
  • Compatibility with WordPress 6.3.
Location:
miniorange-wp-as-saml-idp
Files:
215 added
30 edited

Legend:

Unmodified
Added
Removed
  • miniorange-wp-as-saml-idp/trunk/MoIDP.php

    r2903389 r2952048  
    189189     */
    190190    public function mo_idp_plugin_anchor_links( $links ) {
    191         if ( array_key_exists( 'deactivate', $links ) ) {
     191        if ( isset( $links['deactivate'] ) ) {
    192192            $arr  = array();
    193193            $data = array(
  • miniorange-wp-as-saml-idp/trunk/MoIDPSettings.php

    r2903389 r2952048  
    44 * Plugin URI: https://plugins.miniorange.com/wordpress-saml-idp
    55 * Description: Convert your WordPress into an IDP.
    6  * Version: 1.15.0
     6 * Version: 1.15.1
    77 * Author: miniOrange
    88 * Author URI: https://plugins.miniorange.com/
  • miniorange-wp-as-saml-idp/trunk/actions/SSOActions.php

    r2903389 r2952048  
    171171    public function mo_idp_handle_post_login( $login ) {
    172172        $sanitized_cookie = MoIDPUtility::sanitize_associative_array( $_COOKIE );
    173         if ( array_key_exists( 'response_params', $sanitized_cookie ) && ! MoIDPUtility::is_blank( $sanitized_cookie['response_params'] ) ) {
     173        if ( ! empty( $sanitized_cookie['response_params'] ) ) {
    174174            try {
    175175
     
    236236     */
    237237    private function send_saml_response_based_on_request_data( $sanitized_request ) {
    238         $default_relay_state = ! array_key_exists( 'defaultRelayState', $sanitized_request )
    239                                 || MoIDPUtility::is_blank( $sanitized_request['defaultRelayState'] ) ? '/' : $sanitized_request['defaultRelayState'];
     238        $default_relay_state = empty( $sanitized_request['defaultRelayState'] ) ? '/' : $sanitized_request['defaultRelayState'];
    240239        $this->send_response_handler->mo_idp_send_response(
    241240            array(
  • miniorange-wp-as-saml-idp/trunk/autoload.php

    r2903389 r2952048  
    1212use IDP\SplClassLoader;
    1313
    14 define( 'MSI_VERSION', '1.15.0' );
     14define( 'MSI_VERSION', '1.15.1' );
    1515define( 'MSI_DB_VERSION', '1.4' );
    1616define( 'MSI_DIR', plugin_dir_path( __FILE__ ) );
  • miniorange-wp-as-saml-idp/trunk/controllers/contact-button.php

    r2903389 r2952048  
    2525$phone                  = get_site_option( 'mo_idp_admin_phone' );
    2626$phone                  = $phone ? $phone : '';
    27 $support                = MoIDPConstants::SAMLSUPPORT_EMAIL;
     27$support                = MoIDPConstants::WPIDPSUPPORT_EMAIL;
    2828
    2929$support_nonce = SupportHandler::get_instance()->nonce;
  • miniorange-wp-as-saml-idp/trunk/controllers/sso-attr-settings.php

    r2903389 r2952048  
    1212}
    1313
     14use IDP\Handler\SPSettingsHandler;
     15
    1416/**
    1517 * Global variable to access the `MoDbQueries`
     
    2123global $moidp_db_queries;
    2224
    23 $disabled = ! $registered || ! $verified ? '' : null;
    24 $sp_list  = $moidp_db_queries->get_sp_list();
    25 $sp       = empty( $sp_list ) ? '' : $sp_list[0];
     25$disabled                 = ! $registered || ! $verified ? '' : null;
     26$sp_list                  = $moidp_db_queries->get_sp_list();
     27$sp                       = empty( $sp_list ) ? '' : $sp_list[0];
     28$idp_change_name_id_nonce = SPSettingsHandler::get_instance()->nonce;
    2629
    2730require MSI_DIR . 'views/attr-settings.php';
  • miniorange-wp-as-saml-idp/trunk/controllers/sso-idp-settings.php

    r2903389 r2952048  
    6969                    ( 'JWT' === $protocol_inuse ? 'Selected Service Provider : JWT ' : 'Selected Service Provider : WS-FED ' );
    7070    $test_window = '';
    71     $relay_state = $sp->mo_idp_default_relayState; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase -- Refers to mo_idp_default_relay_state.
     71    $relay_state = ! empty( $sp ) ? $sp->mo_idp_default_relayState : ''; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase -- Refers to mo_idp_default_relay_state.
    7272    if ( 'JWT' === $protocol_inuse ) {
    7373        include MSI_DIR . 'views/idp-jwt-settings.php';
  • miniorange-wp-as-saml-idp/trunk/controllers/sso-idp-support.php

    r2903389 r2952048  
    2626$sanitized_request = MoIDPUtility::sanitize_associative_array( $_REQUEST );
    2727
    28 if ( array_key_exists( 'plan_name', $sanitized_request ) ) {
     28if ( ! empty( $sanitized_request['plan_name'] ) ) {
    2929    if ( 'lite_monthly' === $sanitized_request['plan_name'] ) {
    3030        $plan      = 'mo_lite_monthly';
  • miniorange-wp-as-saml-idp/trunk/handler/BaseHandler.php

    r2903389 r2952048  
    7171        foreach ( $array as $key => $value ) {
    7272            if (
    73                 ( is_array( $value ) && ( ! array_key_exists( $key, $value ) || MoIDPUtility::is_blank( $value[ $key ] ) ) )
     73                ( is_array( $value ) && empty( $value[ $key ] ) )
    7474                || MoIDPUtility::is_blank( $value )
    7575            ) {
  • miniorange-wp-as-saml-idp/trunk/handler/DemoRequestHandler.php

    r2903389 r2952048  
    104104            ! $customer_key ? MoIDPConstants::DEFAULT_CUSTOMER_KEY : $customer_key,
    105105            ! $api_key ? MoIDPConstants::DEFAULT_API_KEY : $api_key,
    106             MoIDPConstants::SAMLSUPPORT_EMAIL,
     106            MoIDPConstants::WPIDPSUPPORT_EMAIL,
    107107            $content,
    108108            'Request a Demo : ' . MoIDPConstants::AREA_OF_INTEREST
  • miniorange-wp-as-saml-idp/trunk/handler/FeedbackHandler.php

    r2903389 r2952048  
    5151        $email_value  = sanitize_email( $sanitized_post['idp_email'] );
    5252
    53         $keep_settings_intact = array_key_exists( 'idp_keep_settings_intact', $sanitized_post );
    54         $is_reply_required    = array_key_exists( 'idp_dnd', $sanitized_post );
     53        $keep_settings_intact = isset( $sanitized_post['idp_keep_settings_intact'] );
     54        $is_reply_required    = isset( $sanitized_post['idp_dnd'] );
    5555
    5656        if ( $keep_settings_intact ) {
     
    117117            ! $customer_key ? MoIDPConstants::DEFAULT_CUSTOMER_KEY : $customer_key,
    118118            ! $api_key ? MoIDPConstants::DEFAULT_API_KEY : $api_key,
    119             MoIDPConstants::SAMLSUPPORT_EMAIL,
     119            MoIDPConstants::WPIDPSUPPORT_EMAIL,
    120120            $content,
    121121            'WordPress IDP Plugin Deactivated'
  • miniorange-wp-as-saml-idp/trunk/handler/IDPSettingsHandler.php

    r2903389 r2952048  
    4646        $this->check_if_valid_plugin();
    4747        $this->is_valid_request();
    48         if ( array_key_exists( 'mo_saml_idp_entity_id', $sanitized_post ) && ! empty( $sanitized_post['mo_saml_idp_entity_id'] ) ) {
     48        if ( ! empty( $sanitized_post['mo_saml_idp_entity_id'] ) ) {
    4949            update_site_option( 'mo_idp_entity_id', $sanitized_post['mo_saml_idp_entity_id'] );
    5050            MoIDPUtility::create_metadata_file(); // regenerate the metadata file.
  • miniorange-wp-as-saml-idp/trunk/handler/ReadRequestHandler.php

    r2903389 r2952048  
    6969
    7070        $request_object = RequestDecisionHandler::get_request_handler( $type, $sanitized_request, $sanitized_get );
    71         $relay_state    = array_key_exists( 'RelayState', $sanitized_request ) ? $sanitized_request['RelayState'] : '/';
     71        $relay_state    = isset( $sanitized_request['RelayState'] ) ? $sanitized_request['RelayState'] : '/';
    7272
    7373        if ( MoIDPUtility::is_blank( $request_object ) ) {
  • miniorange-wp-as-saml-idp/trunk/handler/RegistrationUtility.php

    r2903389 r2952048  
    112112     */
    113113    public function check_if_otp_validation_passed( $array, $key ) {
    114         if ( ! array_key_exists( $key, $array ) || strcasecmp( $array[ $key ], 'SUCCESS' ) !== 0 ) {
     114        if ( empty( $array[ $key ] ) || strcasecmp( $array[ $key ], 'SUCCESS' ) !== 0 ) {
    115115            throw new OTPValidationFailedException();
    116116        }
     
    126126     */
    127127    public function check_if_otp_sent_successfully( $array, $key ) {
    128         if ( ! array_key_exists( $key, $array ) || strcasecmp( $array[ $key ], 'SUCCESS' ) !== 0 ) {
     128        if ( empty( $array[ $key ] ) || strcasecmp( $array[ $key ], 'SUCCESS' ) !== 0 ) {
    129129            throw new OTPSendingFailedException();
    130130        }
     
    140140     */
    141141    public function check_if_password_reset_successfully( $array, $key ) {
    142         if ( ! array_key_exists( $key, $array ) || strcasecmp( $array[ $key ], 'SUCCESS' ) !== 0 ) {
     142        if ( empty( $array[ $key ] ) || strcasecmp( $array[ $key ], 'SUCCESS' ) !== 0 ) {
    143143            throw new PasswordResetFailedException();
    144144        }
  • miniorange-wp-as-saml-idp/trunk/handler/SPSettingsHandler.php

    r2903389 r2952048  
    295295        $moidp_db_queries->delete_sp( $sp_where, $sp_attr_where );
    296296
    297         if ( array_key_exists( 'SP', $_SESSION ) ) {
     297        if ( isset( $_SESSION['SP'] ) ) {
    298298            unset( $_SESSION['SP'] );
    299299        }
  • miniorange-wp-as-saml-idp/trunk/handler/SPSettingsUtility.php

    r2903389 r2952048  
    3838     */
    3939    public function check_if_valid_service_provider( $sp, $is_array = false, $key = null ) {
    40         if ( ( $is_array && array_key_exists( $key, $sp ) && MoIDPUtility::is_blank( $sp[ $key ] ) )
    41             || MoIDPUtility::is_blank( $sp ) ) {
     40        if ( ( $is_array && empty( $sp[ $key ] ) ) || MoIDPUtility::is_blank( $sp ) ) {
    4241            throw new NoServiceProviderConfiguredException();
    4342        }
  • miniorange-wp-as-saml-idp/trunk/handler/SupportHandler.php

    r2903389 r2952048  
    5656        $query = sanitize_textarea_field( $sanitized_post['mo_idp_contact_us_query'] );
    5757
    58         if ( array_key_exists( 'mo_idp_upgrade_plan_name', $sanitized_post ) ) {
     58        if ( ! empty( $sanitized_post['mo_idp_upgrade_plan_name'] ) ) {
    5959            $plan_name  = sanitize_text_field( $sanitized_post['mo_idp_upgrade_plan_name'] );
    6060            $plan_users = sanitize_text_field( $sanitized_post['mo_idp_upgrade_plan_users'] );
  • miniorange-wp-as-saml-idp/trunk/helper/constants/MoIDPConstants.php

    r2903389 r2952048  
    2525    const UPGRADE_USERS_PLAN   = 'wp_saml_idp_upgrade_plan';
    2626    const PATTERN_PHONE        = '/^[\+]\d{1,4}\d{7,12}$|^[\+]\d{1,4}[\s]\d{7,12}$/';
    27     const SAMLSUPPORT_EMAIL    = 'saml[email protected]';
     27    const WPIDPSUPPORT_EMAIL   = 'wpidp[email protected]';
    2828    const FEEDBACK_FROM_EMAIL  = '[email protected]';
    2929
  • miniorange-wp-as-saml-idp/trunk/helper/factory/RequestDecisionHandler.php

    r2903389 r2952048  
    5959        // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_decode -- Base64 decoding required for the SAML protocol.
    6060        $saml_request = base64_decode( $saml_request );
    61         if ( array_key_exists( 'SAMLRequest', $sanitized_get ) ) {
     61        if ( ! empty( $sanitized_get['SAMLRequest'] ) ) {
    6262            $saml_request = gzinflate( $saml_request );
    6363        }
  • miniorange-wp-as-saml-idp/trunk/helper/utilities/MoIDPUtility.php

    r2903389 r2952048  
    8686     */
    8787    public static function add_sp_cookie( $issuer ) {
    88         $sanitized_cookie = self::sanitize_associative_array( $_COOKIE );
     88        $sanitized_cookie   = self::sanitize_associative_array( $_COOKIE );
     89        $arr_cookie_options = array(
     90            'expires'  => time() + 21600,
     91            'path'     => '/',
     92            'secure'   => true,
     93            'samesite' => 'None',
     94        );
    8995        if ( isset( $sanitized_cookie['mo_sp_count'] ) ) {
    9096            for ( $i = 1;$i <= $sanitized_cookie['mo_sp_count'];$i++ ) {
     
    95101        }
    96102        $sp_count = isset( $sanitized_cookie['mo_sp_count'] ) ? $sanitized_cookie['mo_sp_count'] + 1 : 1;
    97         setcookie( 'mo_sp_count', $sp_count );
    98         setcookie( 'mo_sp_' . $sp_count . '_issuer', $issuer );
     103        setcookie( 'mo_sp_count', $sp_count, $arr_cookie_options );
     104        setcookie( 'mo_sp_' . $sp_count . '_issuer', $issuer, $arr_cookie_options );
    99105    }
    100106
     
    492498        $sanitized_array = array();
    493499        foreach ( $raw_array as $key => $value ) {
    494             $sanitized_array[ $key ] = sanitize_text_field( $value );
     500            $sanitized_array[ $key ] = htmlspecialchars( $value );
    495501        }
    496502        return $sanitized_array;
  • miniorange-wp-as-saml-idp/trunk/helper/utilities/MoIDPcURL.php

    r2903389 r2952048  
    8989            'company'   => $server_name,
    9090            'email'     => $q_email,
    91             'ccEmail'   => 'saml[email protected]',
     91            'ccEmail'   => 'wpidp[email protected]',
    9292            'phone'     => $q_phone,
    9393            'query'     => $query,
     
    122122                'bccEmail'    => MoIDPConstants::FEEDBACK_FROM_EMAIL,
    123123                'fromName'    => 'miniOrange',
    124                 'toEmail'     => MoIDPConstants::SAMLSUPPORT_EMAIL,
    125                 'toName'      => MoIDPConstants::SAMLSUPPORT_EMAIL,
     124                'toEmail'     => MoIDPConstants::WPIDPSUPPORT_EMAIL,
     125                'toName'      => MoIDPConstants::WPIDPSUPPORT_EMAIL,
    126126                'subject'     => $subject,
    127127                'content'     => $content,
  • miniorange-wp-as-saml-idp/trunk/helper/wsfed/WsFedRequest.php

    r2903389 r2952048  
    7070     */
    7171    public function __construct( $sanitized_request ) {
    72         $this->client_request_id = array_key_exists( 'client-request-id', $sanitized_request ) ? $sanitized_request['client-request-id'] : null;
    73         $this->wa                = array_key_exists( 'wa', $sanitized_request ) ? $sanitized_request['wa'] : null;
    74         $this->wtrealm           = array_key_exists( 'wtrealm', $sanitized_request ) ? $sanitized_request['wtrealm'] : null;
    75         $this->wctx              = array_key_exists( 'wctx', $sanitized_request ) ? $sanitized_request['wctx'] : null;
     72        $this->client_request_id = ! empty( $sanitized_request['client-request-id'] ) ? $sanitized_request['client-request-id'] : null;
     73        $this->wa                = ! empty( $sanitized_request['wa'] ) ? $sanitized_request['wa'] : null;
     74        $this->wtrealm           = ! empty( $sanitized_request['wtrealm'] ) ? $sanitized_request['wtrealm'] : null;
     75        $this->wctx              = ! empty( $sanitized_request['wctx'] ) ? $sanitized_request['wctx'] : null;
    7676
    7777        if ( MoIDPUtility::is_blank( $this->wa ) ) {
  • miniorange-wp-as-saml-idp/trunk/readme.txt

    r2903389 r2952048  
    44Tags: Login with WordPress, single sign on, SSO, identity provider, WordPress login, LMS, SAML IDP, Tableau, Moodle, Zoom, Nextcloud, Thinkific
    55Requires at least: 4.8
    6 Tested up to: 6.2
    7 Stable tag: 1.15.0
     6Tested up to: 6.3
     7Stable tag: 1.15.1
    88Requires PHP: 5.6
    99License: MIT/Expat
     
    6767and practically any SAML compliant Service Provider.
    6868
    69 **Note** : _Some Service Providers require additional attributes to configure SSO. This is a Premium feature. Feel free to ask us for a trial version of the Premium plugin to test the SSO. Reach out to us using the Support form in the plugin or simply send us a mail at saml[email protected]._
     69**Note** : _Some Service Providers require additional attributes to configure SSO. This is a Premium feature. Feel free to ask us for a trial version of the Premium plugin to test the SSO. Reach out to us using the Support form in the plugin or simply send us a mail at wpidp[email protected]._
    7070
    7171To know more about the plugin, please visit <a href="https://plugins.miniorange.com/wordpress-saml-idp" target="_blank">this</a> page.
     
    7373If you are looking to SSO into your WordPress site with any SAML compliant Identity Provider then we have a separate plugin for that. <a href="https://wordpress.org/plugins/miniorange-saml-20-single-sign-on/" target="_blank"> Click Here </a> to learn more.
    7474
    75 If you require any Single Sign On application or need any help with installing this plugin, please feel free to email us at saml[email protected]. You can also submit your query from plugin's configuration page.
     75If you require any Single Sign On application or need any help with installing this plugin, please feel free to email us at wpidp[email protected]. You can also submit your query from plugin's configuration page.
    7676
    7777= Special Use-Cases : =
     
    8787**WordPress & LMS SSO** - Most of the LMS out there (Moodle LMS, Absorb LMS, Canvas LMS, TalentLMS, Flagship LMS, etc) support SAML Single Sign-On. Now, you can advertise your courses on your WordPress site, and log the user in into your LMS automatically without having to enter the credentials again. Login with WordPress User into Moodle LMS / Absorb LMS / Canvas LMS / TalentLMS / Flagship LMS.
    8888
    89 **WordPress Salesforce Object Sync** - Sync WordPress data with Salesforce data using <a href=https://wordpress.org/plugins/object-data-sync-for-salesforce/ target=_blank>Object Data Sync for Salesforce</a> plugin. Our <a href=https://plugins.miniorange.com/wordpress-object-sync-for-salesforce target=_blank>WordPress Salesforce data sync</a> plugin works in tandem with the WordPress SAML IDP plugin to facilitate seamless WP Salesforce login, and also <a href=https://plugins.miniorange.com/sync-salesforce-objects-to-wordpress target=_blank>syncs all WordPress object data with Salesforce object data</a> in Salesforce using Apex triggers on the Salesforce side. Know more about our WordPress Salesforce Object Sync plugin by reaching out to us at saml[email protected].
     89**WordPress Salesforce Object Sync** - Sync WordPress data with Salesforce data using <a href=https://wordpress.org/plugins/object-data-sync-for-salesforce/ target=_blank>Object Data Sync for Salesforce</a> plugin. Our <a href=https://plugins.miniorange.com/wordpress-object-sync-for-salesforce target=_blank>WordPress Salesforce data sync</a> plugin works in tandem with the WordPress SAML IDP plugin to facilitate seamless WP Salesforce login, and also <a href=https://plugins.miniorange.com/sync-salesforce-objects-to-wordpress target=_blank>syncs all WordPress object data with Salesforce object data</a> in Salesforce using Apex triggers on the Salesforce side. Know more about our WordPress Salesforce Object Sync plugin by reaching out to us at wpidp[email protected].
    9090
    9191These are some of the most requested use-cases out of hundreds of use-cases that are supported by our plugin!
     
    116116= Website - =
    117117Check out our website for other plugins <a href="https://plugins.miniorange.com" >https://plugins.miniorange.com</a> or <a href="https://wordpress.org/plugins/search.php?q=miniorange" >click here</a> to see all our listed WordPress plugins.
    118 For more support or info email us at saml[email protected]. You can also submit your query from the plugin's configuration page.
     118For more support or info email us at wpidp[email protected]. You can also submit your query from the plugin's configuration page.
    119119
    120120== Installation ==
     
    133133
    134134= I am not able to configure the Identity Provider with the settings provided by Service Provider =
    135 Please email us at saml[email protected]. You can also submit your app request from plugin's configuration page.
     135Please email us at wpidp[email protected]. You can also submit your app request from plugin's configuration page.
    136136
    137137= For any query/problem/request =
    138 Visit Help & FAQ section in the plugin OR email us at saml[email protected] or <a href="http://miniorange.com/contact">Contact us</a>. You can also submit your query from plugin's configuration page.
     138Visit Help & FAQ section in the plugin OR email us at wpidp[email protected] or <a href="http://miniorange.com/contact">Contact us</a>. You can also submit your query from plugin's configuration page.
    139139
    140140== Screenshots ==
     
    145145
    146146== Changelog ==
     147
     148= 1.15.1 =
     149* Bug fix - Warning appearing on Service Providers page.
     150* Bug fix - Unable to change NameID attribute value.
     151* Bug fix - Fixed RelayState characters getting stripped.
     152* Bug fix - Fixed configuration tables not being deleted on plugin deletion.
     153* Setting more secure cookies at the time of SSO.
     154* Updated support email address.
     155* Compatibility with WordPress 6.3.
    147156
    148157= 1.15.0 =
     
    326335== Upgrade Notice ==
    327336
     337= 1.15.1 =
     338* Bug fixes.
     339* Security fixes.
     340* New dedicated support email address.
     341* Compatibility with WordPress 6.3.
     342
    328343= 1.15.0 =
    329344* Code fixes as per WordPress guidelines.
  • miniorange-wp-as-saml-idp/trunk/uninstall.php

    r2903389 r2952048  
    3838    $data_table = is_multisite() ? 'mo_sp_data' : $wpdb->prefix . 'mo_sp_data';
    3939
    40     // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.DirectDatabaseQuery.SchemaChange -- Using a prepared SQL statement to remove plugin configuration at the time of uninstall.
    41     $wpdb->query( $wpdb->prepare( 'DROP TABLE %s', $attr_table ) );
     40    // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.DirectDatabaseQuery.SchemaChange, WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Removing plugin configuration at the time of uninstall prepare not required as the table name is picked from a local string.
     41    $wpdb->query( "DROP TABLE IF EXISTS $attr_table" );
    4242
    43     // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.DirectDatabaseQuery.SchemaChange -- Using a prepared SQL statement to remove plugin configuration at the time of uninstall.
    44     $wpdb->query( $wpdb->prepare( 'DROP TABLE %s', $data_table ) );
     43    // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.DirectDatabaseQuery.SchemaChange, WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Removing plugin configuration at the time of uninstall prepare not required as the table name is picked from a local string.
     44    $wpdb->query( "DROP TABLE IF EXISTS $data_table" );
    4545}
  • miniorange-wp-as-saml-idp/trunk/views/attr-settings.php

    r2903389 r2952048  
    1919                    <input type="hidden" name="option" value="change_name_id" />
    2020                    <input type="hidden" name="error_message" id="error_message" />';
     21                    wp_nonce_field( $idp_change_name_id_nonce );
    2122                echo '  <input type="hidden" name="service_provider" value="' . ( isset( $sp ) && ! empty( $sp ) ? esc_attr( $sp->id ) : '' ) . '"/>';
    2223                echo '   <table class="mo-idp-settings-table" style="border-spacing: 0 6px;">
  • miniorange-wp-as-saml-idp/trunk/views/common-elements.php

    r2903389 r2952048  
    105105                <li>Step 4:&nbsp;&nbsp;&nbsp;&nbsp;Restart the Apache Server.</li>
    106106            </ul>
    107             For any further queries, please <a href="mailto:saml[email protected]">contact us</a>.                               
     107            For any further queries, please <a href="mailto:wpidp[email protected]">contact us</a>.                             
    108108        </div>';
    109109    }
  • miniorange-wp-as-saml-idp/trunk/views/idp-addons.php

    r2903389 r2952048  
    2525                    <p class="mo-idp-add-ons-desc">WooCommerce Integration allows you to send advanced profile fields of WooCommerce in the SAML Response to easily perform SSO with WooCommerce.</p>
    2626                </div>
    27                 <a class="mo-idp-add-ons-link mo-idp-home-card-link-href mo-idp-botrt" type="submit"  href="mailto:saml[email protected]?subject=Need WooCommerce Integration&body=Hello There! we want to know more about WooCommerce Integration">Contact Us &nbsp;→</a>
     27                <a class="mo-idp-add-ons-link mo-idp-home-card-link-href mo-idp-botrt" type="submit"  href="mailto:wpidp[email protected]?subject=Need WooCommerce Integration&body=Hello There! we want to know more about WooCommerce Integration">Contact Us &nbsp;→</a>
    2828            </div>
    2929            <div class="mo-idp-advt-card">';
     
    3636                    <p class="mo-idp-add-ons-desc">Memberpress Integration allows you to send advanced profile fields of MemberPress in the SAML Response to easily perform SSO with Memberpress.</p>
    3737                </div>
    38                 <a class="mo-idp-add-ons-link mo-idp-home-card-link-href mo-idp-botrt" type="submit" href="mailto:saml[email protected]?subject=Need MemberPress Integration&body=Hello There! we want to know more about MemberPress Integration">Contact Us &nbsp;→</a>
     38                <a class="mo-idp-add-ons-link mo-idp-home-card-link-href mo-idp-botrt" type="submit" href="mailto:wpidp[email protected]?subject=Need MemberPress Integration&body=Hello There! we want to know more about MemberPress Integration">Contact Us &nbsp;→</a>
    3939            </div>
    4040            <div class="mo-idp-advt-card">';
     
    4646                    <p class="mo-idp-add-ons-desc">BuddyPress Integration allows you to send advanced profile fields of BuddyPress in the SAML Response to easily perform SSO with BuddyPress.</p>
    4747                </div>
    48                 <a class="mo-idp-add-ons-link mo-idp-home-card-link-href mo-idp-botrt"  type="submit" href="mailto:saml[email protected]?subject=Need BuddyPress Integration&body=Hello There! we want to know more about BuddyPress Integration">Contact Us &nbsp;→</a>
     48                <a class="mo-idp-add-ons-link mo-idp-home-card-link-href mo-idp-botrt"  type="submit" href="mailto:wpidp[email protected]?subject=Need BuddyPress Integration&body=Hello There! we want to know more about BuddyPress Integration">Contact Us &nbsp;→</a>
    4949            </div>
    5050        </div>
     
    5959                    <p class="mo-idp-add-ons-desc">Paid Membership Pro Integration allows you to send advanced profile fields of PaidMembership Pro in the SAML Response to easily perform SSO with Paid Membership Pro.</p>
    6060                </div>
    61                 <a class="mo-idp-add-ons-link mo-idp-home-card-link-href mo-idp-botrt"  type="submit" href="mailto:saml[email protected]?subject=Need Paid Membership Pro Integration&body=Hello There! we want to know more about Paid Membership Pro Integration">Contact Us &nbsp;→</a>
     61                <a class="mo-idp-add-ons-link mo-idp-home-card-link-href mo-idp-botrt"  type="submit" href="mailto:wpidp[email protected]?subject=Need Paid Membership Pro Integration&body=Hello There! we want to know more about Paid Membership Pro Integration">Contact Us &nbsp;→</a>
    6262            </div>
    6363
     
    7070                    <p class="mo-idp-add-ons-desc">Protect/Restrict page and post content on your WordPress (WP) site using Page and Post Restriction plugin. Configure content access/restriction for your users based on their user roles and user login status.</p>
    7171                </div>
    72                 <a class="mo-idp-add-ons-link mo-idp-home-card-link-href mo-idp-botrt"  type="submit" href="mailto:saml[email protected]?subject=Need Page Restriction Plugin&body=Hello There! we want to know more about Page Restriction Plugin">Contact Us &nbsp;→</a>
     72                <a class="mo-idp-add-ons-link mo-idp-home-card-link-href mo-idp-botrt"  type="submit" href="mailto:wpidp[email protected]?subject=Need Page Restriction Plugin&body=Hello There! we want to know more about Page Restriction Plugin">Contact Us &nbsp;→</a>
    7373            </div>
    7474
     
    8181                    <p class="mo-idp-add-ons-desc">Employee Directory is a central database of employees, staff, members, and teams. Provides a searchable, sortable list of employees, and password-protect employee data.</p>
    8282                </div>
    83                 <a class="mo-idp-add-ons-link mo-idp-home-card-link-href mo-idp-botrt"  type="submit" href="mailto:saml[email protected]?subject=Need Employee Directory Integration&body=Hello There! we want to know more about Employee Directory Integration for WordPress">Contact Us &nbsp;→</a>
     83                <a class="mo-idp-add-ons-link mo-idp-home-card-link-href mo-idp-botrt"  type="submit" href="mailto:wpidp[email protected]?subject=Need Employee Directory Integration&body=Hello There! we want to know more about Employee Directory Integration for WordPress">Contact Us &nbsp;→</a>
    8484            </div>
    8585        </div>
     
    9494                    <p class="mo-idp-add-ons-desc">Object Sync for Salesforce allows you to synchronize your WordPress objects (like users, pages, posts, blogs, etc.) with Salesforce.Along with WordPress to Salesforce sync the plugin can also enable syncing data from Salesforce to WordPress.</p>
    9595                </div>
    96                 <a class="mo-idp-add-ons-link mo-idp-home-card-link-href mo-idp-botrt"  type="submit" href="mailto:saml[email protected]?subject=Need Object Data Sync for Salesforce&body=Hello There! we want to know more about Object Data Sync for Salesforce Plugin">Contact Us &nbsp;→</a>
     96                <a class="mo-idp-add-ons-link mo-idp-home-card-link-href mo-idp-botrt"  type="submit" href="mailto:wpidp[email protected]?subject=Need Object Data Sync for Salesforce&body=Hello There! we want to know more about Object Data Sync for Salesforce Plugin">Contact Us &nbsp;→</a>
    9797            </div>
    9898
     
    105105                    <p class="mo-idp-add-ons-desc">Configure real-time WordPress SCIM user provisioning. Enable automated WordPress user sync from various IDPs like Azure AD, Okta, GSuite. Our WordPress SCIM plugin allows you to automate user creation, update and delete user information to your WordPress site in real-time .</p>
    106106                </div>
    107                 <a class="mo-idp-add-ons-link mo-idp-home-card-link-href mo-idp-botrt" type="submit" href="mailto:saml[email protected]?subject=Need SCIM Provisioning Plugin&body=Hello There! we want to know more about SCIM Provisioning Plugin">Contact Us &nbsp;→</a>
     107                <a class="mo-idp-add-ons-link mo-idp-home-card-link-href mo-idp-botrt" type="submit" href="mailto:wpidp[email protected]?subject=Need SCIM Provisioning Plugin&body=Hello There! we want to know more about SCIM Provisioning Plugin">Contact Us &nbsp;→</a>
    108108            </div>
    109109
     
    114114                echo '<div class="mo-idp-advt-card-container">
    115115                    <h4 class="mo-idp-add-ons-head">Looking for Something Else?</h4>
    116                     <p class="mo-idp-add-ons-desc">If you have any custom requirements, feel free to reach out to us at <a href="mailto:[email protected]">saml[email protected]</a></p>
     116                    <p class="mo-idp-add-ons-desc">If you have any custom requirements, feel free to reach out to us at <a href="mailto:[email protected]">wpidp[email protected]</a></p>
    117117                </div>
    118                 <a class="mo-idp-add-ons-link mo-idp-home-card-link-href mo-idp-botrt"  type="submit" href="mailto:saml[email protected]?subject=Custom requirements&body=Hello There! we have custom requirements">Contact Us &nbsp;→</a>
     118                <a class="mo-idp-add-ons-link mo-idp-home-card-link-href mo-idp-botrt"  type="submit" href="mailto:wpidp[email protected]?subject=Custom requirements&body=Hello There! we have custom requirements">Contact Us &nbsp;→</a>
    119119            </div>   
    120120        </div>
  • miniorange-wp-as-saml-idp/trunk/views/idp-error.php

    r2903389 r2952048  
    1616    echo '<div>
    1717                    You have reached the limit of <b>' . esc_attr( $count ) . ' Service Providers(SP)</b>.
    18                     Contact us at saml[email protected] or use the support form if you want to increase the limit.
     18                    Contact us at wpidp[email protected] or use the support form if you want to increase the limit.
    1919                    <br/><br/>';
    2020} else {
    21     echo '<p>Invalid Action. Please contact us at saml[email protected] or use the support form.</p>';
     21    echo '<p>Invalid Action. Please contact us at wpidp[email protected] or use the support form.</p>';
    2222}
    2323    echo '<input type="button"
  • miniorange-wp-as-saml-idp/trunk/views/idp-support.php

    r2903389 r2952048  
    106106            <p class="mo-idp-text-center mo-idp-home-card-link">
    107107                If you want custom features in the plugin, reach out to us at
    108                 <a href="mailto:[email protected]">saml[email protected]</a>.
     108                <a href="mailto:[email protected]">wpidp[email protected]</a>.
    109109            </p>
    110110        </div>
  • miniorange-wp-as-saml-idp/trunk/views/pricing.php

    r2903389 r2952048  
    197197                <br>
    198198                Once you reach the <b>80%</b> of your purchased user license limit, you will automatically receive email notification on your registered email address.
    199                 At this point, you can reach out to us at <a href="mailto:[email protected]">saml[email protected]</a> or using the support form in the plugin, and we will assist you with the upgrade.<br>
     199                At this point, you can reach out to us at <a href="mailto:[email protected]">wpidp[email protected]</a> or using the support form in the plugin, and we will assist you with the upgrade.<br>
    200200                Post expiry there will be 15 days grace period to renew your license, otherwise the <span class="mo-idp-red"><b>SSO will be disabled</b></span>. 
    201201                </p>
     
    222222                    </p>
    223223                    If you have any doubts regarding the licensing plans, you can mail us at
    224                     <a href="mailto:[email protected]"><i>saml[email protected]</i></a>
     224                    <a href="mailto:[email protected]"><i>wpidp[email protected]</i></a>
    225225                    or submit a query using the <b>support form</b>.
    226226                </p>
     
    232232                    advertised and you have attempted to resolve any feature issues with our support team, which couldn\'t get resolved, then we will
    233233                    refund the whole amount within 10 days of the purchase. Please email us at
    234                     <a href="mailto:[email protected]">saml[email protected]</a> for any queries regarding the return policy.
     234                    <a href="mailto:[email protected]">wpidp[email protected]</a> for any queries regarding the return policy.
    235235                    <br> If you have any doubts regarding the licensing plans, you can mail us at
    236                     <a href="mailto:[email protected]">saml[email protected]</a> or submit a query using the support form.
     236                    <a href="mailto:[email protected]">wpidp[email protected]</a> or submit a query using the support form.
    237237                </p>
    238238            </div>
Note: See TracChangeset for help on using the changeset viewer.