Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thephpleague:9.0.0-WIP -> skroczek:wip/private-claims Upstream merge and conflict resolve #1

Merged
merged 183 commits into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
183 commits
Select commit Hold shift + click to select a range
7da857b
Move to Github Actions
driesvints Nov 10, 2020
c95a4f0
PHP 8 Support
driesvints Nov 10, 2020
7715229
Merge pull request #1148 from driesvints/github-actions
Sephster Nov 12, 2020
fbbf053
Use proper if in workflow
driesvints Nov 12, 2020
e886a28
Merge pull request #1149 from driesvints/patch-2
Sephster Nov 13, 2020
c64d65d
Merge remote-tracking branch 'upstream/master' into php8
Sephster Nov 17, 2020
a9f39f0
Update composer dependencies
Sephster Nov 18, 2020
3916ee7
Add version 8 to php versions to test
Sephster Nov 18, 2020
531eb4d
Update composer dependencies for examples
Sephster Nov 23, 2020
f140ce6
Update composer dependencies
Sephster Nov 23, 2020
f8f8320
Update to use version 4 API of JWT package
Sephster Nov 23, 2020
32d7d7a
Update tests to use version 4 of JWT package
Sephster Nov 23, 2020
6b6878b
Temp removal of fail fast
Sephster Nov 23, 2020
ebd78d3
Temp remove phpstan checks
Sephster Nov 23, 2020
109795b
Fix config file for phpunit
Sephster Nov 24, 2020
9a58173
Change to use plainText instead of empty
Sephster Nov 24, 2020
7efa91c
Fix backwards compatibility for aud
Sephster Nov 24, 2020
ad2a1be
Drop support for PHP 7.2
Sephster Nov 24, 2020
e85da74
Fix style CI issues
Sephster Nov 24, 2020
5dd0188
Drop support for PHP 7.2
Sephster Nov 24, 2020
b6266f1
StyleCI fixes
Sephster Nov 24, 2020
309cff6
StyleCI fixes
Sephster Nov 24, 2020
a29ccf7
Set minimum stability to dev temporarily
Sephster Nov 24, 2020
89091b7
remove minimum-stabiity
Sephster Nov 24, 2020
4764e40
Add BC check
Sephster Nov 24, 2020
cb32154
Update dependencies for BC check
Sephster Nov 24, 2020
d600718
Make OAuthServerException constructor final
Sephster Nov 24, 2020
9abc6b8
Revert final for constructor
Sephster Nov 24, 2020
89084a5
Remove PHPStan
Sephster Nov 24, 2020
de7de42
Remove commented phpstan from actions
Sephster Nov 24, 2020
85b8efb
Remove backwards compatibility check
Sephster Nov 24, 2020
3fcfe2c
Update dependencies
Sephster Nov 25, 2020
51cf94e
Remove backwards compat test
Sephster Nov 25, 2020
c968b00
Reinstate BC checker
Sephster Nov 25, 2020
d50709c
Update change log for version 8.2.0
Sephster Nov 25, 2020
0419bf4
Update dependencies
Sephster Nov 25, 2020
682dc07
Update examples dependencies
Sephster Nov 25, 2020
8e89f55
Add docblocks for functions
Sephster Nov 25, 2020
8837ed9
Merge pull request #1146 from driesvints/php8
Sephster Nov 25, 2020
97cca39
Pass Key object instead of string to JWT configuration
Sephster Nov 26, 2020
28ced05
Update changelog
Sephster Nov 26, 2020
a88fcac
Update changelog
Sephster Nov 26, 2020
284c2b5
Merge pull request #1159 from Sephster/fix-key-passing
Sephster Nov 26, 2020
8a3f409
fix for passphrase with private key
bradymiller Nov 30, 2020
1caddca
Handle null passphrases
Sephster Nov 30, 2020
65cb74c
Changed to use null coalesce
Sephster Nov 30, 2020
80352b8
Update changelog
Sephster Nov 30, 2020
010d664
Merge pull request #1164 from bradymiller/private-key-passphrase-fix
Sephster Nov 30, 2020
e1f0c0d
Fix format error for changelog
Sephster Nov 30, 2020
e87248f
Update changelog links
Sephster Nov 30, 2020
c1f4a6f
Re-Add PHP 7.2 Support and fix code coverage reports
Sephster Dec 2, 2020
3bfdfff
Change dependencies for PHP 7.2
Sephster Dec 2, 2020
2308a65
Remove is_countable function
Sephster Dec 2, 2020
3a707c6
Merge pull request #1165 from Sephster/reinstate-php-7-2-support
Sephster Dec 2, 2020
c5e5284
Downgrade phpunit to v8
Sephster Dec 2, 2020
4b4ecac
Merge pull request #1167 from Sephster/reinstate-php-7-2-support
Sephster Dec 2, 2020
646686d
Remove code coverage from php 8.0 as phpunit cannot support
Sephster Dec 2, 2020
59bd4f7
Push debug message
Sephster Dec 2, 2020
88a30cb
Fix debug message
Sephster Dec 2, 2020
90e5fcd
Fix code coverage restriction for PHP 8
Sephster Dec 2, 2020
ead7651
Add debug
Sephster Dec 2, 2020
d76a8b8
Fix for excluding php 8 code coverage
Sephster Dec 2, 2020
3d5160d
further trials on workflow
Sephster Dec 2, 2020
f7e785d
Tweaking of github flow
Sephster Dec 2, 2020
5907279
Remove debug message
Sephster Dec 2, 2020
f847bd5
Update changelog
Sephster Dec 3, 2020
70bb329
Add pull requests to CHANGELOG
Sephster Dec 3, 2020
80699bd
Revert enforcing of client redirect uri
Sephster Dec 8, 2020
44e8b41
Fix confusing auth behavior when used with a common .htaccess pattern
symbioquine Dec 8, 2020
61d939c
Merge master into v9 wip
Sephster Dec 8, 2020
e80ac28
Readded changes for v9 to changelog
Sephster Dec 9, 2020
0ba3f42
Add redirect URI to client for RefreshToken test
Sephster Dec 9, 2020
a1fd8f0
Apply StyleCI fixes
Sephster Dec 9, 2020
46b3cb1
Merge pull request #1171 from Sephster/9.0.0-WIP
Sephster Dec 9, 2020
cd43b4a
Update changelog
Sephster Dec 9, 2020
f82dfbd
Merge pull request #1169 from Sephster/allow-missing-client-redirect-…
Sephster Dec 10, 2020
622eaa1
Update release date for 8.2.4
Sephster Dec 10, 2020
c29055c
Update changelog
Sephster Dec 11, 2020
abc9e52
Merge branch 'master' into fix-www-auth-invalid-client-id
Sephster Dec 11, 2020
020faf4
Merge pull request #1170 from symbioquine/fix-www-auth-invalid-client-id
Sephster Dec 11, 2020
2f62832
Default Scope does not work as expected
datapp Jan 3, 2021
15abf4a
Restrict code coverage checks to this repo in actions
Sephster Jan 6, 2021
f0ee70d
Add switch to prevent revoking of refresh tokens.
janhopman-nhb Feb 8, 2021
fe20b33
Fix unit test.
janhopman-nhb Feb 11, 2021
fbb96cb
Separation of token parsing and validation
eugene-borovov Mar 7, 2021
6fb1cb9
Merge pull request #1198 from eugene-borovov/improve-jwt-validation
Sephster Mar 14, 2021
07bdaeb
Remove deprecated function
Sephster Mar 14, 2021
83af8d1
Update minimum 4.x version for lcobucci/jwt
Sephster Mar 14, 2021
ad4f1a9
allowing different ports for loopback redirect uris
Mar 15, 2021
12006d8
added test case for ipv6 loopback address
Mar 15, 2021
fdc666d
code formatting
Mar 15, 2021
2f49755
code formatting
Mar 15, 2021
e9ba0cc
fixed comments, names and changelog
Mar 16, 2021
aa47403
fixed test case name
Mar 16, 2021
d254681
removed scalar typehint and updated doc
Mar 16, 2021
5d26b2a
Validate expected type of input parameters
marc-mabe Apr 1, 2021
7157bff
Added token events
lookyman Apr 6, 2021
e7a69a9
clearer function name & doc
Apr 9, 2021
d6e0b38
Merge pull request #1210 from marc-mabe/validate-input-parameter-type
Sephster Apr 17, 2021
82e7b70
Merge branch 'master' of github.com:thephpleague/oauth2-server
Sephster Apr 17, 2021
108f13b
update changelog to add details of PR 1210
Sephster Apr 17, 2021
5c696be
Merge pull request #1211 from lookyman/token-events
Sephster Apr 17, 2021
1fb3387
update changelog to include details for PR 1211
Sephster Apr 17, 2021
cb17576
Remove ValidAt constraint use case
Sephster Apr 17, 2021
a603133
Restrict lcobucci/jwt to the 4.0.x branch to ensure backward compat
Sephster Apr 18, 2021
fcf8833
Validate key with phpseclib3
eugene-borovov Apr 19, 2021
d3dcf23
Fix code style
eugene-borovov Apr 19, 2021
b4f7aa7
fixed copyright
Apr 20, 2021
fa7f775
removed unnecessary else blocks
Apr 20, 2021
7c446b6
using redirectUri instead of client as constructor argument
Apr 20, 2021
18904e5
using strict array equality
Apr 20, 2021
736ad06
fixed chagelog entry
Apr 20, 2021
86274ad
clearer function names
Apr 20, 2021
3d5a9b2
minor refactoring to improve clarity
Apr 20, 2021
a28efcf
fixed style issues
Apr 20, 2021
58bd2ba
fixed variable name conflict
Apr 20, 2021
39b862a
Upgrade to GitHub-native Dependabot
dependabot-preview[bot] Apr 29, 2021
2d5413e
Ignore PHPUnit cache
ElisDN May 3, 2021
9ccc922
Fix request variable name
ElisDN May 4, 2021
4e0fcb9
Merge pull request #1220 from thephpleague/dependabot/add-v2-config-file
Sephster May 8, 2021
c1a04fb
Merge pull request #1221 from ElisDN/cache-ignore
Sephster May 8, 2021
b1ca467
Merge pull request #1223 from ElisDN/request
Sephster May 8, 2021
fa79088
backward compatibility
eugene-borovov May 16, 2021
90b662f
Verify key with openssl
eugene-borovov May 27, 2021
02afad1
Fix code style
eugene-borovov May 27, 2021
7826675
Merge branch 'master' into rfc8252-compliance
Sephster May 29, 2021
93ace54
Merge pull request #1203 from exeba/rfc8252-compliance
Sephster May 29, 2021
b65d486
Remove isFilePath function
eugene-borovov May 31, 2021
92d9bb1
Fix code style
eugene-borovov May 31, 2021
de16703
Revert save key method
eugene-borovov May 31, 2021
c8fb25e
Empty commit
janhopman-nhb May 31, 2021
1fa9be9
Merge https://github.com/thephpleague/oauth2-server
janhopman-nhb May 31, 2021
8ea2bd1
Fix ci style.
janhopman-nhb May 31, 2021
5cf9d07
Remove method from interface since it is already present on the abstr…
janhopman-nhb May 31, 2021
c1e7da3
Merge pull request #1215 from eugene-borovov/phpseclib-cryptokey
Sephster May 31, 2021
0d57b70
Update changelog to include PR 1215
Sephster May 31, 2021
96b76ef
Respond with helpful and spec complient error on invalid user credent…
marc-mabe May 21, 2021
f7dd62b
Merge remote-tracking branch 'upstream/master' into bugfix/scope-name…
Sephster May 31, 2021
3e31fe9
Update tests
marc-mabe May 31, 2021
e3d5d6d
Update changelog
Sephster May 31, 2021
936e229
Update changelog
Sephster May 31, 2021
9bfb699
Merge pull request #1181 from datapp/bugfix/scope-named-0-considered-…
Sephster May 31, 2021
c808d13
Set revokeRefreshTokens prop to true by default, added method to chan…
janhopman-nhb Jun 1, 2021
d0cf492
Add tests.
janhopman-nhb Jun 1, 2021
8c33b52
Merge pull request #1189 from dnhb/master
Sephster Jun 3, 2021
d7634f9
change function name and update changelog
Sephster Jun 3, 2021
4ea27e8
update changelog for version 8.3.0 release
Sephster Jun 3, 2021
be65bf1
Fix tests
Sephster Jun 4, 2021
1423ae4
update changelog
Sephster Jun 4, 2021
97dbc97
Merge pull request #1233 from Sephster/fix-type-check-errors
Sephster Jun 4, 2021
eae0272
Allow lcobucci/jwt 4.1
derrabus Jun 15, 2021
289fb49
Merge pull request #1236 from derrabus/bugfix/allow-jwt-4.1
Sephster Jul 10, 2021
04efa91
Update changelog for PR #1236
Sephster Jul 10, 2021
dc7fa33
Fix typo in changelog
Sephster Jul 10, 2021
0c86312
Merge pull request #1230 from marc-mabe/user-credentials-error
Sephster Jul 10, 2021
330deb0
Use key as string without a temporary file
ssigwart Dec 24, 2020
0db9f82
Style fixes
ssigwart Dec 24, 2020
3c2eda4
More style fixes
ssigwart Dec 24, 2020
dd23cbd
Style fixes
ssigwart Jun 25, 2021
f338c7a
Style fixes 2
ssigwart Jun 25, 2021
c1f2e0e
Style fixes 3
ssigwart Jun 25, 2021
426040e
Store key contents instead of Key object
ssigwart Jun 26, 2021
bec2d33
Remove trailing comma
ssigwart Jul 10, 2021
35fc377
Merge pull request #1180 from RunSignUp-Team/keyStr
Sephster Jul 12, 2021
4058765
Update changelog
Sephster Jul 12, 2021
34a170c
Simplifies `Bearer` regex
donatj Jul 16, 2021
30fa7c1
Merge pull request #1238 from donatj/patch-1
Sephster Jul 27, 2021
715d5fa
Update changelog
Sephster Jul 27, 2021
0809487
Update changelog for version 8.3.2 release
Sephster Jul 27, 2021
80009a2
Small syntax fix
Nyholm Sep 7, 2021
49893d2
Merge pull request #1246 from Nyholm/patch-2
Sephster Sep 8, 2021
0e4fd34
docs(AuthorizationServer): fix a typo in a comment
Sep 16, 2021
f124cc1
Merge pull request #1247 from kilofox/patch-1
Sephster Sep 16, 2021
e5c981c
Avoid using broken `LocalFileReference` from lcobucci/jwt
chalasr Sep 30, 2021
85bb8de
Merge pull request #1249 from chalasr/inmem-key
Sephster Sep 30, 2021
86d96d2
Add details to changelog for LocalFileReference() deprecation
Sephster Oct 11, 2021
f28ca20
Update examples to use lcobucci/jwt 4.0.4 as minimum
Sephster Oct 11, 2021
9be7ebb
Update version constraint for lcobucci/jwt
Sephster Oct 11, 2021
f5698a3
Update version constraint for lcobucci/jwt
Sephster Oct 11, 2021
1d035e7
Use thephpleague/oauth2-server-bundle for the Symfony integration
chalasr Oct 13, 2021
aab8994
Merge pull request #1250 from chalasr/symfony-bundle
Sephster Oct 13, 2021
de61d4e
Merge master into branch
Sephster Jan 17, 2022
dc2f7ac
Merge remote-tracking branch 'upstream/9.0.0-WIP' into wip/private-cl…
JRogaishio Aug 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
/.gitignore export-ignore
/.scrutinizer.yml export-ignore
/.styleci.yml export-ignore
/.travis.yml export-ignore
/phpstan.neon export-ignore
/phpunit.xml.dist export-ignore
/CHANGELOG.md export-ignore
Expand Down
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: composer
directory: "/"
schedule:
interval: daily
time: "11:00"
open-pull-requests-limit: 10
ignore:
- dependency-name: league/event
versions:
- 3.0.0
21 changes: 21 additions & 0 deletions .github/workflows/backwards-compatibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "Backwards compatibility check"

on:
pull_request:

jobs:
bc-check:
name: "Backwards compatibility check"

runs-on: "ubuntu-latest"

steps:
- name: "Checkout"
uses: "actions/checkout@v2"
with:
fetch-depth: 0

- name: "Backwards Compatibility Check"
uses: docker://nyholm/roave-bc-check-ga
with:
args: --from=${{ github.event.pull_request.base.sha }}
42 changes: 42 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: tests

on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'

jobs:
tests:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php: [7.2, 7.3, 7.4, 8.0]
stability: [prefer-lowest, prefer-stable]

name: PHP ${{ matrix.php }} - ${{ matrix.stability }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip
coverage: pcov

- name: Install dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress

- name: Execute tests
run: vendor/bin/phpunit --verbose --coverage-clover=coverage.clover

- name: Code coverage
if: ${{ github.ref == 'refs/heads/master' && matrix.php != 8.0 && github.repository == 'thephpleague/oauth2-server' }}
run: |
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/vendor
/composer.lock
phpunit.xml
.phpunit.result.cache
.idea
/examples/vendor
examples/public.key
Expand Down
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

76 changes: 67 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,76 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added (v9)
### Added
- A CryptKeyInterface to allow developers to change the CryptKey implementation with greater ease (PR #1044)
- The authorization server can now finalize scopes when a client uses a refresh token (PR #1094)
- An AuthorizationRequestInterface to make it easier to extend the AuthorizationRequest (PR #1110)
- Ability to set custom claims on a JWT (PR #1122)

### Fixed
- If a refresh token has expired, been revoked, cannot be decrypted, or does not belong to the correct client, the server will now issue an `invalid_grant` error and a HTTP 400 response. In previous versions the server incorrectly issued an `invalid_request` and HTTP 401 response (PR #1042) (PR #1082)

### Changed
- Authorization Request objects are now created through the factory method, `createAuthorizationRequest()` (PR #1111)
- Changed parameters for `finalizeScopes()` to allow a reference to an auth code ID (PR #1112)

## [8.3.3] - released 2021-10-11
### Security
- Removed the use of `LocalFileReference()` in lcobucci/jwt. Function deprecated as per [GHSA-7322-jrq4-x5hf](https://github.com/lcobucci/jwt/security/advisories/GHSA-7322-jrq4-x5hf) (PR #1249)

## [8.3.2] - released 2021-07-27
### Changed
- Conditionally support the `StrictValidAt()` method in lcobucci/jwt so we can use version 4.1.x or greater of the library (PR #1236)
- When providing invalid credentials, the library now responds with the error message _The user credentials were incorrect_ (PR #1230)
- Keys are always stored in memory now and are not written to a file in the /tmp directory (PR #1180)
- The regex for matching the bearer token has been simplified (PR #1238)

## [8.3.1] - released 2021-06-04
### Fixed
- Revert check on clientID. We will no longer require this to be a string (PR #1233)

## [8.3.0] - released 2021-06-03
### Added
- The server will now validate redirect uris according to rfc8252 (PR #1203)
- Events emitted now include the refresh token and access token payloads (PR #1211)
- Use the `revokeRefreshTokens()` function to decide whether refresh tokens are revoked or not upon use (PR #1189)

### Changed
- Keys are now validated using `openssl_pkey_get_private()` and `openssl_pkey_get_public()` instead of regex matching (PR #1215)

### Fixed
- The server will now only recognise and handle an authorization header if the value of the header is non-empty. This is to circumvent issues where some common frameworks set this header even if no value is present (PR #1170)
- Added type validation for redirect uri, client ID, client secret, scopes, auth code, state, username, and password inputs (PR #1210)
- Allow scope "0" to be used. Previously this was removed from a request because it failed an `empty()` check (PR #1181)

## [8.2.4] - released 2020-12-10
### Fixed
- Reverted the enforcement of at least one redirect_uri for a client. This change has instead been moved to version 9 (PR #1169)

## [8.2.3] - released 2020-12-02
### Added
- Re-added support for PHP 7.2 (PR #1165, #1167)

## [8.2.2] - released 2020-11-30
### Fixed
- Fix issue where the private key passphrase isn't correctly passed to JWT library (PR #1164)

## [8.2.1] - released 2020-11-26
### Fixed
- If you have a password on your private key, it is now passed correctly to the JWT configuration object. (PR #1159)

## [8.2.0] - released 2020-11-25
### Added
- Add a `getRedirectUri` function to the `OAuthServerException` class (PR #1123)
- Support for PHP 8.0 (PR #1146)

### Fixed (v9)
- If a refresh token has expired, been revoked, cannot be decrypted, or does not belong to the correct client, the server will now issue an `invalid_grant` error and a HTTP 400 response. In previous versions the server incorrectly issued an `invalid_request` and HTTP 401 response (PR #1042) (PR #1082)
### Removed
- Removed support for PHP 7.2 (PR #1146)

### Fixed
- Fix typo in parameter hint. `code_challenged` changed to `code_challenge`. Thrown by Auth Code Grant when the code challenge does not match the regex. (PR #1130)
- Undefined offset was returned when no client redirect URI was set. Now throw an invalidClient exception if no redirect URI is set against a client (PR #1140)

### Changed (v9)
- Authorization Request objects are now created through the factory method, `createAuthorizationRequest()` (PR #1111)
- Changed parameters for `finalizeScopes()` to allow a reference to an auth code ID (PR #1112)

## [8.1.1] - released 2020-07-01

### Fixed
Expand Down Expand Up @@ -518,7 +567,16 @@ Version 5 is a complete code rewrite.

- First major release

[Unreleased]: https://github.com/thephpleague/oauth2-server/compare/8.1.1...HEAD
[Unreleased]: https://github.com/thephpleague/oauth2-server/compare/8.3.3...HEAD
[8.3.3]: https://github.com/thephpleague/oauth2-server/compare/8.3.2...8.3.3
[8.3.2]: https://github.com/thephpleague/oauth2-server/compare/8.3.1...8.3.2
[8.3.1]: https://github.com/thephpleague/oauth2-server/compare/8.3.0...8.3.1
[8.3.0]: https://github.com/thephpleague/oauth2-server/compare/8.2.4...8.3.0
[8.2.4]: https://github.com/thephpleague/oauth2-server/compare/8.2.3...8.2.4
[8.2.3]: https://github.com/thephpleague/oauth2-server/compare/8.2.2...8.2.3
[8.2.2]: https://github.com/thephpleague/oauth2-server/compare/8.2.1...8.2.2
[8.2.1]: https://github.com/thephpleague/oauth2-server/compare/8.2.0...8.2.1
[8.2.0]: https://github.com/thephpleague/oauth2-server/compare/8.1.1...8.2.0
[8.1.1]: https://github.com/thephpleague/oauth2-server/compare/8.1.0...8.1.1
[8.1.0]: https://github.com/thephpleague/oauth2-server/compare/8.0.0...8.1.0
[8.0.0]: https://github.com/thephpleague/oauth2-server/compare/7.4.0...8.0.0
Expand Down
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@

[![Latest Version](http://img.shields.io/packagist/v/league/oauth2-server.svg?style=flat-square)](https://github.com/thephpleague/oauth2-server/releases)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
[![Build Status](https://img.shields.io/travis/thephpleague/oauth2-server/master.svg?style=flat-square)](https://travis-ci.org/thephpleague/oauth2-server)
[![Build Status](https://github.com/thephpleague/oauth2-server/workflows/tests/badge.svg)](https://github.com/thephpleague/oauth2-server/actions)
[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/thephpleague/oauth2-server.svg?style=flat-square)](https://scrutinizer-ci.com/g/thephpleague/oauth2-server/code-structure)
[![Quality Score](https://img.shields.io/scrutinizer/g/thephpleague/oauth2-server.svg?style=flat-square)](https://scrutinizer-ci.com/g/thephpleague/oauth2-server)
[![Total Downloads](https://img.shields.io/packagist/dt/league/oauth2-server.svg?style=flat-square)](https://packagist.org/packages/league/oauth2-server)
[![PHPStan](https://img.shields.io/badge/PHPStan-enabled-brightgreen.svg?style=flat-square)](https://github.com/phpstan/phpstan)

`league/oauth2-server` is a standards compliant implementation of an [OAuth 2.0](https://tools.ietf.org/html/rfc6749) authorization server written in PHP which makes working with OAuth 2.0 trivial. You can easily configure an OAuth 2.0 server to protect your API with access tokens, or allow clients to request new access tokens and refresh them.

Expand All @@ -29,11 +28,12 @@ This library was created by Alex Bilbie. Find him on Twitter at [@alexbilbie](ht

## Requirements

The following versions of PHP are supported:
The latest version of this package supports the following versions of PHP:

* PHP 7.2
* PHP 7.3
* PHP 7.4
* PHP 8.0

The `openssl` and `json` extensions are also required.

Expand All @@ -52,24 +52,23 @@ You can contribute to the documentation in the [gh-pages branch](https://github.

## Testing

The library uses [PHPUnit](https://phpunit.de/) for unit tests and [PHPStan](https://github.com/phpstan/phpstan) for static analysis of the code.
The library uses [PHPUnit](https://phpunit.de/) for unit tests.

```
vendor/bin/phpunit
vendor/bin/phpstan analyse -l 7 -c phpstan.neon src tests
```

## Continous Integration
## Continuous Integration

We use [Travis CI](https://travis-ci.org/), [Scrutinizer](https://scrutinizer-ci.com/), and [StyleCI](https://styleci.io/) for continuous integration. Check out [our](https://github.com/thephpleague/oauth2-server/blob/master/.travis.yml) [configuration](https://github.com/thephpleague/oauth2-server/blob/master/.scrutinizer.yml) [files](https://github.com/thephpleague/oauth2-server/blob/master/.styleci.yml) if you'd like to know more.
We use [Github Actions](https://github.com/features/actions), [Scrutinizer](https://scrutinizer-ci.com/), and [StyleCI](https://styleci.io/) for continuous integration. Check out [our](https://github.com/thephpleague/oauth2-server/blob/master/.github/workflows/tests.yml) [configuration](https://github.com/thephpleague/oauth2-server/blob/master/.scrutinizer.yml) [files](https://github.com/thephpleague/oauth2-server/blob/master/.styleci.yml) if you'd like to know more.

## Community Integrations

* [Drupal](https://www.drupal.org/project/simple_oauth)
* [Laravel Passport](https://github.com/laravel/passport)
* [OAuth 2 Server for CakePHP 3](https://github.com/uafrica/oauth-server)
* [OAuth 2 Server for Mezzio](https://github.com/mezzio/mezzio-authentication-oauth2)
* [Trikoder OAuth 2 Bundle (Symfony)](https://github.com/trikoder/oauth2-bundle)
* [OAuth 2 Server Bundle (Symfony)](https://github.com/thephpleague/oauth2-server-bundle)
* [Heimdall for CodeIgniter 4](https://github.com/ezralazuardy/heimdall)

## Changelog
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
"homepage": "https://oauth2.thephpleague.com/",
"license": "MIT",
"require": {
"php": ">=7.2.0",
"php": "^7.2 || ^8.0",
"ext-openssl": "*",
"league/event": "^2.2",
"lcobucci/jwt": "^3.3.1",
"lcobucci/jwt": "^3.4.6 || ^4.0.4",
"psr/http-message": "^1.0.1",
"defuse/php-encryption": "^2.2.1",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^8.5.4 || ^9.1.3",
"laminas/laminas-diactoros": "^2.3.0",
"phpstan/phpstan": "^0.11.19",
"phpstan/phpstan-phpunit": "^0.11.2",
"phpunit/phpunit": "^8.5.13",
"laminas/laminas-diactoros": "^2.4.1",
"phpstan/phpstan": "^0.12.57",
"phpstan/phpstan-phpunit": "^0.12.16",
"roave/security-advisories": "dev-master"
},
"repositories": [
Expand Down
10 changes: 5 additions & 5 deletions examples/composer.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"require": {
"slim/slim": "^3.0.0"
"slim/slim": "^3.12.3"
},
"require-dev": {
"league/event": "^2.2",
"lcobucci/jwt": "^3.3",
"psr/http-message": "^1.0",
"defuse/php-encryption": "^2.2",
"laminas/laminas-diactoros": "^2.1.2"
"lcobucci/jwt": "^3.4.6 || ^4.0.4",
"psr/http-message": "^1.0.1",
"defuse/php-encryption": "^2.2.1",
"laminas/laminas-diactoros": "^2.5.0"
},
"autoload": {
"psr-4": {
Expand Down
Loading