定制 rstgroup/behat-oauth2-context 二次开发

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

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

rstgroup/behat-oauth2-context

Composer 安装命令:

composer require rstgroup/behat-oauth2-context

包简介

Behat Context for OAuth2

README 文档

README

This library include Behat context with implemented steps and features to test common use case of server with OAuth2 (The OAuth 2.0 Authorization Framework standards)

Requirements

Library is only supported on PHP 5.4.0 and up.

For others requirements please see the composer.json file.

Installation

  1. Add the following to your composer.json,

    "require": {
        "rstgroup/behat-oauth2-context": "^1.0"
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "git@github.com:rstgroup/behat-oauth2-context.git"
        }
    ]
  2. Run composer update rstgroup/behat-oauth2-context to ensure the library is installed.

Configuration

Copy behat.yml.dist file as behat.yml to your home project directory or copy contents from this file to your yml file with Behat tests. You must replace sample content to right option:

    paths:
        - %paths.base%/features

to right current path for example:

    paths:
        - %paths.base%/vendor/rstgroup/behat-oauth2-context/features/

And next you must replace parameters option:

  • token_url - your url to token
  • oauth2 - your data for OAuth2 authorization

Recommended and optional parameters

In configuration we added two parameters recommended and optional. Their options are exists in OAuth2 RFC. You can change their values to false if you know that your server doesn't send someone.

Run Tests

For run tests you must use Behat. You can read about it in Behat documentation. Sample run:

vendor/bin/behat --config behat.yml

统计信息

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

GitHub 信息

  • Stars: 10
  • Watchers: 5
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-08-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固