【Ecstore2.0】第三方信任登陆问题解决_备忘

ECSTORE2.0的信任登陆模块开启后,需要拿着授过权的ID在官网进行配置才可以使用,但是客户的授权证书一时无法使用,而跳过认证的话功能又用不了,所以就自己临时搭了一个测试用的认证服务器和信任登陆平台,测试完毕,服务器已被肢解。

1、appopenidlibinterfacepassport.php

    function __construct(){
        $this->url = SITE_API; //自己搭的信任登陆平台@chn.vmax@gmail.com 原地址:'http://www.ecopen.cn/api/'
        $this->cert_id = base_certificate::get('certificate_id');
    }

2、appopenidlibdenglu.php

class openid_denglu{

    var $commit_url = SITE_API; //自己搭的信任登陆平台@chn.vmax@gmail.com 原地址:http://www.ecopen.cn/api/'
    var $webtype = '3';

    function __construct(){
        $this->license_id = base_certificate::get('certificate_id');
        $this->license_key = base_certificate::get('token');
        $this->entid = base_enterprise::ent_id();
    }

SITE_API 是我自已搭的第三方信任登陆托管服务器,可以单独设置登陆接口帐号,也可以使用公共帐号。

原文地址:https://www.cnblogs.com/vmax/p/3596570.html