承接 mijndomein/dreamcommerce-sso-client 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mijndomein/dreamcommerce-sso-client

最新稳定版本:0.3.2

Composer 安装命令:

composer require mijndomein/dreamcommerce-sso-client

包简介

A single sign on client for a dreamcommerce webshop

README 文档

README

Build Status

To test this run the following script in the root of the project:

<?php
require_once "vendor/autoload.php";

use GuzzleHttp\Client as GuzzleClient;
use DreamCommerce\SingleSignOn\Ip;
use DreamCommerce\SingleSignOn\SignOnMode;
use DreamCommerce\SingleSignOn\TimeProvider;
use DreamCommerce\SingleSignOn\SingleSignOnClient;

// Please change the following values for testing
// string hardcoded in the application code, provided by DC
$serverSalt = 'salt';
$shopDomain = 'domain-of-your.shop';
// string generated by MD and passed as one of the parameters to "createLicense" api call (should be unique for every shop)
$ssoHash = 'sso-hash-for-your-shop';



$client = new SingleSignOnClient(
    new GuzzleClient(),
    new TimeProvider,
    $serverSalt,
    'console/plugin/execute/plugin/LmsSSO-SSO/act/handshake/token',
    10
);


$handShakeUrl = $client->requestHandshakeUrl(
    SignOnMode::asUser(),
    new Ip(file_get_contents('http://api.ipify.org')),
    $shopDomain,
    $ssoHash
);
echo $handShakeUrl;

统计信息

  • 总下载量: 1.85k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 23
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-04-13