jojijacobk/access-sso-protected-data
Composer 安装命令:
composer require jojijacobk/access-sso-protected-data
包简介
Read/Write data on single-sign-on protected pages with a single line of script.
关键字:
README 文档
README
If you are ever on a rush for an automated script to perform read/write operation on data residing behind single-sign-on protected URL, this module is for you. Just configure a working SSO username & password into config.ini file - you are done!
- class SingleSignOn - tries to access the single-sign-on protected URL, and follows HTTP redirects to the authentication server, and pass through authentication server by posting credentials configured in config.ini file. After successful authentication, a cookie jar stores necessary cookies to perform subsequent visits to any URLs within the protected host.
- class Data Streamer - is used to perform read/write operations on protected server resources, after successfully signing into protected hosts with the help of SignleSignOn class.
How To Install
Visit packagist for details.
-
Install the package via composer
composer require jojijacobk/access-sso-protected-data -
Make config.ini file in the root directory (where composer.json file resides). You can make the config.ini file either by copying it from
vendor/jojijacobk/access-sso-protected-data/config.ini, or by the copying the config.ini sample as described below.config.ini; single sign-on credentials [single_sign_on] username = hello@company.com password = xxxxx -
Make a PHP file in the root directory (where _composer.json & config.ini resides), let's call it
demo.phpand write the following script to read data from single-sign-on protected page:demo.php<?php require 'vendor/autoload.php'; $requestUrl_1 = "https://jira.your-company.com/jira/rest/api/2/search?jql=xxx"; $requestUrl_2 = "https://confluence.your-company.com/confluence/rest/api/content/yyy"; echo \jojijacobk\access_sso_protected_data\DataStreamer::read($requestUrl_1); echo \jojijacobk\access_sso_protected_data\DataStreamer::read($requestUrl_2);
Support or Contact
Github pull requests: https://github.com/jojijacobk/Access-SSO-Protected-Data
Contact me: joji.jacob.k@gmail.com
jojijacobk/access-sso-protected-data 适用场景与选型建议
jojijacobk/access-sso-protected-data 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7 次下载、GitHub Stars 达 1, 最近一次更新时间为 2019 年 05 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「data」 「login」 「SSO」 「access」 「protected」 「authenticate」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 jojijacobk/access-sso-protected-data 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jojijacobk/access-sso-protected-data 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 jojijacobk/access-sso-protected-data 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Shoot aims to make providing data to your templates more manageable
WeChat OAuth SDK
Debugging a problem and need to login as one of your customers? This allows you to authenticate as any of your customers.
Adds the EDTF data type to Wikibase
A simple library that allows transform any kind of data to native php data or whatever
Data provider for yii2
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-05-23