oauth2-server/tests
Sergio Gómez 1b692e2298 Fix S256 code challenge method
According to [RFC7636#section-4.3](https://tools.ietf.org/html/rfc7636#section-4.3):

    If the "code_challenge_method" from Section 4.3 was "S256", the
    received "code_verifier" is hashed by SHA-256, base64url-encoded, and
    then compared to the "code_challenge", i.e.:

    BASE64URL-ENCODE(SHA256(ASCII(code_verifier))) == code_challenge

So, the hash must be done before the base64_encode.

The tests are modified to use example data from the
[RFC7636#appendix-B](https://tools.ietf.org/html/rfc7636#appendix-B).
2018-01-18 05:31:44 +01:00
..
Grant Fix S256 code challenge method 2018-01-18 05:31:44 +01:00
Middleware Merge remote-tracking branch 'upstream/master' 2017-11-13 23:52:36 +00:00
ResponseTypes Refactoring tests 2017-12-06 18:24:42 -02:00
Stubs Apply fixes from StyleCI 2017-10-23 15:26:10 +00:00
AuthorizationServerTest.php Refactoring tests 2017-12-06 18:24:42 -02:00
Bootstrap.php allways extract scopes from repository 2016-03-15 01:10:47 +01:00
CryptKeyTest.php Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase 2017-11-08 16:07:07 -02:00
CryptTraitTest.php Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase 2017-11-08 16:07:07 -02:00
ResourceServerTest.php Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase 2017-11-08 16:07:07 -02:00