oat-sa/extension-tao-lti
Composer 安装命令:
composer require oat-sa/extension-tao-lti
包简介
extension to manage LTI services for TAO
README 文档
README
Extension to manage LTI services for TAO
Installation instructions
These instructions assume that you have already a TAO installation on your system. If you don't, go to package/tao and follow the installation instructions.
If you installed your TAO instance through package/tao,
oat-sa/extension-tao-lti is very likely already installed. You can verify this under Settings -> Extension
manager, where it would appear on the left hand side as taoLti. Alternatively you would find it in
the code at /config/generis/installation.conf.php.
Note, that you have to be logged in as System Administrator to do this.
Add the extension to your TAO composer and to the autoloader:
composer require oat-sa/extension-tao-lti
Install the extension on the CLI from the project root:
Linux:
sudo php tao/scripts/installExtension oat-sa/extension-tao-lti
Windows:
php tao\scripts\installExtension oat-sa/extension-tao-lti
As a system administrator you can also install it through the TAO Extension Manager:
- Settings (the gears on the right hand side of the menu) -> Extension manager
- Select taoLti on the right hand side, check the box and hit install
REST API
Configuration options
ServiceOptions.conf.php
Description: this specifies LTI client configuration.
If the configuration file is not present as
../config/generis/ServiceOptions.conf.php, create it by copying from
../generis/config/default/ServiceOptions.conf.php.
Example
<?php return new oat\generis\model\DependencyInjection\ServiceOptions( [ oat\taoLti\models\classes\Client\LtiClientFactory::class => [ 'config' => [ // This configuration accepts 'proxy' => [ // [Guzzle Request Options](https://docs.guzzlephp.org/en/stable/request-options.html) 'http' => 'http://localhost:8125', 'https' => 'https://localhost:9124', ], ], ], ] );
auth.conf.php
Configuration option config
Description: this specifies a single option as the adapter key of the array. This adapter is to be used to authenticate LTI requests and is retrieved in FactoryLtiAuthAdapterService.
Possible values of the adapter key:
- an instance of any class that implements the
common_user_auth_Adapterinterface
Value examples:
['config' => ['adapter' => 'oat\\taoLti\\models\\classes\\LtiAuthAdapter']]
CookieVerifyService.conf.php
Configuration option verify_cookie
Description: This option determine whether to check if the 'session' request parameter matches the internal PHP session ID before launching an LTI tool
Possible values:
true: enable the session check. 2 more HTTP redirects are neededfalse: disable the session check
LtiUserService.conf.php
Configuration option factoryLtiUser
Description: factory for producing LTI users
Possible values:
- an instance of any class that implements the
oat\taoLti\models\classes\user\LtiUserFactoryInterfaceinterface
Configuration option transaction-safe (only for OntologyLtiUserService implementation)
Description: not used
Configuration option transaction-safe-retry (only for OntologyLtiUserService implementation)
Description: not used
Configuration option lti_ku_ (only for KvLtiUserService implementation)
Description: a prefix for storing taoId => ltiId relation in the key-value storage to look up LTI users
Possible values:
- any unique string
Configuration option lti_ku_lkp_ (only for KvLtiUserService implementation)
Description: a prefix for storing ltiId => taoId relation in the key-value storage to execute reverse lookup
Possible values:
- any unique string
LtiValidatorService.conf.php
Configuration option launchDataValidator
Description: specifies a list of validators to be used for validating LTI launch data
Possible values:
- a list of instances of any classes that implement the
LtiValidatorInterfaceinterface. Validators should throwLtiExceptionin case of not valid data, return values are not considered
Value examples:
[ new oat\taoLti\models\classes\LaunchData\Validator\Lti11LaunchDataValidator() ]
Dependency Injection Service Providers
LtiServiceProvider
Configuration for AuthorizationServerFactory
| ENV variable | Required | Description |
|---|---|---|
| LTI_AUTHORIZATION_SERVER_FACTORY_ENCRYPTION_KEY | Yes | Encryption key for Authorization server factory |
| LTI_DEFAULT_SCOPE | No, default value is https://purl.imsglobal.org/spec/lti-bo/scope/basicoutcome |
A scope for score repository |
Extension Wiki
You can find the extension wiki here.
oat-sa/extension-tao-lti 适用场景与选型建议
oat-sa/extension-tao-lti 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 89.84k 次下载、GitHub Stars 达 4, 最近一次更新时间为 2014 年 07 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「OAT」 「TAO」 「computer-based-assessment」 「LTI」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 oat-sa/extension-tao-lti 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 oat-sa/extension-tao-lti 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 oat-sa/extension-tao-lti 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
extension to manage HTML items in TAO
flysystem cache Adapter
An extension providing the necessary tools to create DataURIs.
An extension focusing on theming the TAO Platform.
TAO job scheduler
统计信息
- 总下载量: 89.84k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 36
- 依赖项目数: 11
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-only
- 更新时间: 2014-07-22
