定制 guigzz/silex-wsse 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

guigzz/silex-wsse

Composer 安装命令:

composer require guigzz/silex-wsse

包简介

Full WSSE authentication for silex projects based on Symfony2 documentation

README 文档

README

This library provides an implementation of WSSE authentication based on the Symfony2 documentation.

Installation

Composer

"require": {
	"guigzz/silex-wsse": "~0.1.0"
}

Usage

  • Register the Guigzz\Wsse\WsseAuthServiceProvider
  • Pass you own User provider to the Wsse provider
  • Use it in your security firewall config
  • You are done!

A basic config example would look like this:

$app->register(new Guigzz\Wsse\WsseAuthServiceProvider(), array(
    'wsse.security_dir'         => __DIR__ . '/../cache/security',
    'wsse.valid_time_window'    => 300,
    'wsse.user'                 => $app->share(function ($app) { return $app['dao.user']; })
));

And use it in your security firewall like this:

$app['security.firewalls'] = array(
    'api'   => array(
        'pattern'   => '^/api/',
        'stateless' => true,
        'wsse'      => true,
    )
);

Configuration

  • 'wsse.security_dir' (optional): where to store auth cache infos (default to your-app-root-dir/cache/security)
  • 'wsse.valid_time_window' (optional): time in seconds of a WSSE validation window (default to 300s). For more infos, please read the Symfony2 documentation about Wsse.
  • 'wsse.user' (mandatory): your app's user provider, so as to authenticate incoming requests.

License

This project is under the MIT License.

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-03-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固