cnam/jwt-api-extension
最新稳定版本:0.0.1
Composer 安装命令:
composer require cnam/jwt-api-extension
包简介
Behat extension for testing api secure with jwt token base in Behat WebApiExtension
README 文档
README
Behat extension for testing api secure with jwt token
forked from Behat/WebApiExtension
Added methods
Then I am authenticating with jwt token as "admin"
And response should contain jwt token in field "token"
And response should contain jwt token in field "token" with data
examples tests/features
usage
Installation
composer install cnam/jwt-api-extension:0.0.1
OR update your composer.json add
require "cnam/jwt-api-extension":"0.0.1"
Configure behat.yml
default: formatters: progress: true pretty: true extensions: Behat\JwtApiExtension\ServiceContainer\JwtApiExtension: base_url: http://mockserver.test/ secret_key: Very_secret_key header_name: X-Access-Token encoded_field_name: name token_prefix: '' ttl: 86400 suites: jwt_suite: paths: [ %paths.base%/tests/features ] contexts: ['Behat\JwtApiExtension\Context\JwtApiContext']
统计信息
- 总下载量: 644
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-29