Plugin Directory

Changeset 3297954


Ignore:
Timestamp:
05/21/2025 10:09:45 AM (10 months ago)
Author:
teamwpminiorange
Message:

Social login release v7.6.10

Location:
miniorange-login-openid
Files:
286 added
9 edited

Legend:

Unmodified
Added
Removed
  • miniorange-login-openid/trunk/CustomerOpenID.php

    r2896771 r3297954  
    11<?php
    22/** miniOrange enables user to log in through OpenID to apps such as Google, Salesforce etc.
    3 Copyright (C) 2015  miniOrange
    4 
    5 This program is free software: you can redistribute it and/or modify
    6 it under the terms of the GNU General Public License as published by
    7 the Free Software Foundation, either version 3 of the License, or
    8 (at your option) any later version.
    9 
    10 This program is distributed in the hope that it will be useful,
    11 but WITHOUT ANY WARRANTY; without even the implied warranty of
    12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    13 GNU General Public License for more details.
    14 
    15 You should have received a copy of the GNU General Public License
    16 along with this program.  If not, see <http://www.gnu.org/licenses/>
    173 *
    18  * @package         miniOrange OAuth
    19  * @license     http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
     4 * @package         miniOrange
     5 * @license     https://plugins.miniorange.com/mit-license Expat
    206 */
    217/**
  • miniorange-login-openid/trunk/miniorange_openid_sso_settings.php

    r3133141 r3297954  
    55 * Plugin URI: https://www.miniorange.com
    66 * Description: Allow your users to login, comment and share with Facebook, Google, Apple, Twitter, LinkedIn etc using customizable buttons.
    7  * Version: 7.6.9
     7 * Version: 7.6.10
    88 * Author: <a href="https://www.miniorange.com/">miniOrange</a>
    9  * License URI: http://miniorange.com/usecases/miniOrange_User_Agreement.pdf
     9 * License: Expat
     10 * License URI: https://plugins.miniorange.com/mit-license
    1011 */
    1112
    12 define( 'MO_OPENID_SOCIAL_LOGIN_VERSION', '7.6.9' );
     13define( 'MO_OPENID_SOCIAL_LOGIN_VERSION', '7.6.10' );
    1314define( 'PLUGIN_URL', esc_url( plugin_dir_url( __FILE__ ) ) . 'includes/images/icons/' );
    1415define( 'MOSL_PLUGIN_DIR', str_replace( '/', '\\', plugin_dir_path( __FILE__ ) ) );
  • miniorange-login-openid/trunk/mo_openid_sso_encryption.php

    r2643398 r3297954  
    33 * @package    miniOrange
    44 * @author     miniOrange Security Software Pvt. Ltd.
    5  * @license    GNU/GPLv3
     5 * @license    Expat
    66 * @copyright  Copyright 2015 miniOrange. All Rights Reserved.
    77 *
  • miniorange-login-openid/trunk/readme.txt

    r3133141 r3297954  
    44Tags: social login, Facebook, Google, LinkedIn, X(Twitter)
    55Requires at least: 2.0.2
    6 Tested up to: 6.6
    7 Stable tag: 7.6.9
     6Tested up to: 6.8
     7Stable tag: 7.6.10
    88Requires PHP: 5.4
    9 License: GPLv2 or later
    10 License URI: http://miniorange.com/usecases/miniOrange_User_Agreement.pdf
     9License: Expat
     10License URI: https://plugins.miniorange.com/mit-license
    1111
    1212Social Login with Discord, Facebook, Google, Twitter, LinkedIn and 40+ apps. Social login with social share and comments. Free, fast & easy! WooCommerce Integration.
     
    278278
    279279==Changelog==
     280= 7.6.10 =
     281* Added compatibility with WP 6.8
     282* Fixed authentication with Google issue
     283* Improved SSO with LinkedIn OIDC
     284
    280285= 7.6.9 =
    281286* Added compatibility with WP 6.6
     
    10491054
    10501055== Upgrade Notice ==
     1056= 7.6.10 =
     1057* Added compatibility with WP 6.8
     1058* Fixed authentication with Google issue
     1059* Improved SSO with LinkedIn OIDC
     1060
    10511061= 7.6.9 =
    10521062* Added compatibility with WP 6.6
  • miniorange-login-openid/trunk/social_apps/discord.php

    r2896771 r3297954  
    3333        $client_id        = $appslist['discord']['clientid'];
    3434        $client_secret    = $appslist['discord']['clientsecret'];
     35        $scope               = $appslist['discord']['scope'];
    3536        $access_token_uri = 'https://discordapp.com/api/oauth2/token';
    36         $postData         = 'client_id=' . $client_id . '&grant_type=authorization_code&code=' . $code . '&redirect_uri=' . $social_app_redirect_uri . '&scope=identify&client_secret=' . $client_secret;
     37        $postData         = 'client_id=' . $client_id . '&grant_type=authorization_code&code=' . $code . '&redirect_uri=' . $social_app_redirect_uri . '&scope=' . $scope . '&client_secret=' . $client_secret;
    3738
    3839        $access_token_json_output = mo_openid_get_access_token( $postData, $access_token_uri, 'discord' );
  • miniorange-login-openid/trunk/social_apps/google.php

    r2896771 r3297954  
    4646        $client_secret            = $appslist['google']['clientsecret'];
    4747        $access_token_uri         = 'https://accounts.google.com/o/oauth2/token';
     48       
    4849        $postData                 = 'code=' . $code . '&client_id=' . $client_id . '&client_secret=' . $client_secret . '&redirect_uri=' . $social_app_redirect_uri . '&grant_type=authorization_code';
    4950        $access_token_json_output = mo_openid_get_access_token( $postData, $access_token_uri, 'google' );
  • miniorange-login-openid/trunk/social_apps/linkedin_oidc.php

    r3133141 r3297954  
    3232        $client_id        = $appslist['linkedin_oidc']['clientid'];
    3333        $client_secret    = $appslist['linkedin_oidc']['clientsecret'];
    34         $access_token_uri = 'https://www.linkedin.com/oauth/v2/accessToken';
    35         $postData         = 'grant_type=authorization_code&code=' . $code . '&redirect_uri=' . $social_app_redirect_uri . '&client_id=' . $client_id . '&client_secret=' . $client_secret;
    36 
     34        $access_token_uri = 'https://www.linkedin.com/oauth/v2/accessToken?grant_type=authorization_code&code=' . $code . '&redirect_uri=' . $social_app_redirect_uri . '&client_id=' . $client_id . '&client_secret=' . $client_secret;
     35        $postData = json_encode([
     36            'grant_type' => 'authorization_code',
     37            'code' => $code,
     38            'redirect_uri' => $social_app_redirect_uri,
     39            'client_id' => $client_id,
     40            'client_secret' => $client_secret,
     41        ]);
     42       
    3743        $access_token_json_output = mo_openid_get_access_token( $postData, $access_token_uri, 'linkedin_oidc' );
    38 
    3944        $access_token = isset( $access_token_json_output['access_token'] ) ? $access_token_json_output['access_token'] : '';
    4045        mo_openid_start_session();
  • miniorange-login-openid/trunk/social_apps/mo_openid_configured_apps_funct.php

    r2999714 r3297954  
    9191function mo_openid_get_access_token( $postData, $access_token_uri, $appname ) {
    9292    $headers = '';
    93     if ( $appname == 'google' || $appname == 'spotify' || $appname == 'apple' ) {
     93    if ( $appname == 'spotify' || $appname == 'apple' ) {
    9494        $headers = array( 'Content-Type' => 'application/x-www-form-urlencoded' );
    9595    }
  • miniorange-login-openid/trunk/social_apps/windowslive.php

    r2896771 r3297954  
    55
    66    public $color     = '#00A1F1';
    7     public $scope     = 'wl.emails,wl.basic,wl.photos,wl.contacts_photos';
    8     public $video_url = 'https://www.youtube.com/embed/hEzghbFJzm8';
    9     public $instructions;
    10 
    11     public function __construct() {
    12         if ( get_option( 'permalink_structure' ) !== '' ) {
    13             $this->site_url     = get_option( 'siteurl' );
    14             $this->instructions = "Go to <a href=\"https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade/\" target=\"_blank\">https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade</a> and sign in with your Microsoft azure account.##Click on <b>New Registration tab</b>.##Name your new app and select <b>Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)
    15 </b> as supported accounts types . ##Enter <b><code id='12'>" . mo_get_permalink( 'windowslive' ) . "</code><i style= \"width: 11px;height: 9px;padding-left:2px;padding-top:3px\" class=\"far fa-fw fa-lg fa-copy mo_copy mo_copytooltip\" onclick=\"copyToClipboard(this, '#12', '#shortcode_url_copy')\"><span id=\"shortcode_url_copy\" class=\"mo_copytooltiptext\">Copy to Clipboard</span></i></b> as Redirect URL.<strong> Click on <b>Register</b>.##Copy the Client ID from the Overview tab.</strong>. This is your <b>Client ID </b>.##Go to Certificates and Security tab.##Click on <b>New Client Sceret</b>. Copy your password. This is your <b>Client Secret</b>.##Click on the Save button.##Copy the client ID and client secret to your clipboard, as you will need them to configure above. ##Click on the Save settings button.##Go to Social Login tab to configure the display as well as other login settings.";
    16         } else {
    17             $this->instructions = "<strong style='color: red;font-weight: bold'><br>You have selected plain permalink and Windows Live doesnot support it.</strong><br><br> Please change the permalink to continue further.Follow the steps given below:<br>1. Go to settings from the left panel and select the permalinks option.<br>2. Plain permalink is selected ,so please select any other permalink and click on save button.<br> <strong class='mo_openid_note_style' style='color: red;font-weight: bold'> When you will change the permalink ,then you have to re-configure the already set up custom apps because that will change the redirect URL.</strong>";
    18         }
    19 
    20     }
    21 
    22     function mo_openid_get_app_code() {
    23         $appslist                = maybe_unserialize( get_option( 'mo_openid_apps_list' ) );
    24         $social_app_redirect_uri = get_social_app_redirect_uri( 'windowslive' );
    25         mo_openid_start_session();
    26         $_SESSION['appname'] = 'windowslive';
    27         $client_id           = $appslist['windowslive']['clientid'];
    28         $scope               = $appslist['windowslive']['scope'];
    29         $login_dialog_url    = 'https://login.live.com/oauth20_authorize.srf?client_id=' . $client_id . '&scope=' . $scope . '&response_type=code&redirect_uri=' . $social_app_redirect_uri;
    30 
    31         header( 'Location:' . $login_dialog_url );
    32 
    33         exit;
    34     }
    35 
    36     function mo_openid_get_access_token() {
    37         $code                    = mo_openid_validate_code();
    38         $social_app_redirect_uri = get_social_app_redirect_uri( 'windowslive' );
    39 
    40         $appslist                 = maybe_unserialize( get_option( 'mo_openid_apps_list' ) );
    41         $client_id                = $appslist['windowslive']['clientid'];
    42         $client_secret            = $appslist['windowslive']['clientsecret'];
    43         $access_token_uri         = 'https://login.live.com/oauth20_token.srf';
    44         $postData                 = 'grant_type=authorization_code&client_id=' . $client_id . '&redirect_uri=' . $social_app_redirect_uri . '&code=' . $code . '&client_secret=' . $client_secret;
    45         $access_token_json_output = mo_openid_get_access_token( $postData, $access_token_uri, 'windowslive' );
    46         $access_token             = isset( $access_token_json_output['access_token'] ) ? $access_token_json_output['access_token'] : '';
    47         mo_openid_start_session();
    48         $profile_url         = 'https://apis.live.net/v5.0/me?access_token=' . $access_token;
    49         $profile_json_output = mo_openid_get_social_app_data( $access_token, $profile_url, 'windowslive' );
    50 
    51         // Test Configuration
    52         if ( is_user_logged_in() && get_option( 'mo_openid_test_configuration' ) == 1 ) {
    53             mo_openid_app_test_config( $profile_json_output );
    54         }
    55         // set all profile details
    56         // Set User current app
    57         $first_name    = $last_name = $email = $user_name = $user_url = $user_picture = $social_user_id = '';
    58         $location_city = $location_country = $about_me = $company_name = $age = $gender = $friend_nos = '';
    59 
    60         $first_name = isset( $profile_json_output['first_name'] ) ? $profile_json_output['first_name'] : '';
    61         $last_name  = isset( $profile_json_output['last_name'] ) ? $profile_json_output['last_name'] : '';
    62         $user_name  = isset( $profile_json_output['name'] ) ? $profile_json_output['name'] : '';
    63         if ( isset( $profile_json_output['emails']['preferred'] ) ) {
    64             $email = isset( $profile_json_output['emails']['preferred'] ) ? $profile_json_output['emails']['preferred'] : '';
    65         } elseif ( isset( $profile_json_output['emails']['account'] ) ) {
    66             $email = isset( $profile_json_output['emails']['account'] ) ? $profile_json_output['emails']['account'] : '';
    67         } elseif ( isset( $profile_json_output['emails']['personal'] ) ) {
    68             $email = isset( $profile_json_output['emails']['personal'] ) ? $profile_json_output['emails']['personal'] : '';
    69         } elseif ( isset( $profile_json_output['emails']['business'] ) ) {
    70             $email = isset( $profile_json_output['emails']['business'] ) ? $profile_json_output['emails']['business'] : '';
    71         }
    72         $user_url         = isset( $profile_json_output['url'] ) ? $profile_json_output['url'] : '';
    73         $user_picture     = isset( $profile_json_output['profile_image_url'] ) ? $profile_json_output['profile_image_url'] : '';
    74         $social_user_id   = isset( $profile_json_output['id'] ) ? $profile_json_output['id'] : '';
    75         $gender           = isset( $profile_json_output['gender'] ) ? $profile_json_output['gender'] : '';
    76         $location_country = isset( $profile_json_output['locale'] ) ? $profile_json_output['locale'] : '';
    77 
    78         $appuserdetails = array(
    79             'first_name'       => $first_name,
    80             'last_name'        => $last_name,
    81             'email'            => $email,
    82             'user_name'        => $user_name,
    83             'user_url'         => $user_url,
    84             'user_picture'     => $user_picture,
    85             'social_user_id'   => $social_user_id,
    86             'location_city'    => $location_city,
    87             'location_country' => $location_country,
    88             'about_me'         => $about_me,
    89             'company_name'     => $company_name,
    90             'friend_nos'       => $friend_nos,
    91             'gender'           => $gender,
    92             'age'              => $age,
    93         );
    94         return $appuserdetails;
    95     }
    967}
Note: See TracChangeset for help on using the changeset viewer.