2017 © Pedro Peláez
 

library behat-oauth2-context

Behat Context for OAuth2

image

rstgroup/behat-oauth2-context

Behat Context for OAuth2

  • Thursday, August 24, 2017
  • by rstgroup
  • Repository
  • 7 Watchers
  • 10 Stars
  • 713 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 2 Open issues
  • 4 Versions
  • 39 % Grown

The README.md

Behat OAuth2

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), (*1)

Requirements

Library is only supported on PHP 5.4.0 and up., (*2)

For others requirements please see the composer.json file., (*3)

Installation

  1. Add the following to your composer.json,, (*4)

    "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., (*5)

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:, (*6)

    paths:
        - %paths.base%/features

to right current path for example:, (*7)

    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, (*8)

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., (*9)

Run Tests

For run tests you must use Behat. You can read about it in Behat documentation. Sample run:, (*10)

vendor/bin/behat --config behat.yml

The Versions

24/08 2017

dev-master

9999999-dev

Behat Context for OAuth2

  Sources   Download

MIT

The Requires

 

by Michał Kopacz
by Bartłomiej Piskorz
by Jakub Niec

24/08 2017

2.0.0

2.0.0.0

Behat Context for OAuth2

  Sources   Download

MIT

The Requires

 

by Michał Kopacz
by Bartłomiej Piskorz
by Jakub Niec

24/08 2017

dev-update_deps

dev-update_deps

Behat Context for OAuth2

  Sources   Download

MIT

The Requires

 

by Michał Kopacz
by Bartłomiej Piskorz
by Jakub Niec

01/10 2015

1.1.0

1.1.0.0

Behat Context for OAuth2

  Sources   Download

MIT

The Requires

 

by Michał Kopacz
by Bartłomiej Piskorz
by Jakub Niec