somecoding / ews-auth
为EWS提供Zend身份验证适配器
2.0.0
2020-03-23 13:47 UTC
Requires
- ext-curl: *
- ext-soap: *
- laminas/laminas-authentication: ^2.6
- laminas/laminas-dependency-plugin: ^1.0
- php-ews/php-ews: ^1.0
This package is auto-updated.
Last update: 2024-09-11 20:37:06 UTC
README
这是一个用于 laminas/laminas-authentication 的 EWS 身份验证适配器。它可以用于验证 OWA / EWS 系统。如果您有一个包含来自 AD 域用户的第三方应用程序,并且没有可用的 LDAP 服务器,这可能对您很有用。
如何安装
由于该项目目前不稳定,您需要指定此项目的版本。安装时,您需要指定一个版本号。
只需在您的项目中执行: "composer require somecoding/ews-auth:0.0.x",其中 x 是最新版本号。
用法
$username = 'test-account'; $password = 'test-password'; $options = [ 'server' => 'owa.example.com', 'domain' => 'example', // optional (is added in front of username: example\username) 'clientVersion' => 'Exchange2013_SP1' //optional ]; $auth = new \EwsAuthAdapter\Ews($options, $username, $password);