Skip to content

Commit

Permalink
Pullrequests/laravel/10.x (#2)
Browse files Browse the repository at this point in the history
* Fixes from StyleCI

* formatting and commenting

* Update CHANGELOG.md

* Update 2016_06_01_000001_create_oauth_auth_codes_table.php

* Update 2016_06_01_000002_create_oauth_access_tokens_table.php

* Update 2016_06_01_000003_create_oauth_refresh_tokens_table.php

* Update 2016_06_01_000004_create_oauth_clients_table.php

* Update 2016_06_01_000005_create_oauth_personal_access_clients_table.php

* wip

* Create the PassportClientFactory

Signed-off-by: Kevin Ullyott <[email protected]>

* Publish the passport-factories

Signed-off-by: Kevin Ullyott <[email protected]>

* Update PassportClientFactory.php

* Update CHANGELOG.md

* Update CHANGELOG.md

* Remove foreign keys

* Update CHANGELOG.md

* Add password grant feature tests

* Revoke refresh tokens as well

* Implement auth token for access requests

* Optionally skip if no auth_token is provided

* Update CHANGELOG.md

* Forget session keys on invalid match

* Joined config publish registering with the rest of the publish registries

* Refactor to sqlite tests

* Apply fixes from StyleCI (laravel#1198)

* Implement Github Actions

* Bump dependencies

* Fix tests

* Update CHANGELOG.md

* [8.x] mergeConfigFrom() already check if app is running with config cached.

https://github.com/illuminate/support/blob/6.x/ServiceProvider.php#L60-L67

* Update CHANGELOG.md

* Update 1_Bug_report.md

* Update config.yml

* Fix resolveInheritedScopes.

* Add an extra test.

* Update Token.php

* Update CHANGELOG.md

* Update tests.yml

* Initial support for multiple providers

* DocBlocks

* Default provider to users if exists otherwise null

* StyleCI suggestion

Co-Authored-By: Dries Vints <[email protected]>

* Check if client is set when validating

* Fixed validation to fallback if provider is not defined

* StyleCI suggestion

* DocBlocks and formatting

* Fix exception on deleted client auth

* Update CHANGELOG.md

* Compare models directly on providers.

* Cleaned up returns, removed redundant code

* Call the validation...

* Decorate UserProvider with custom class

* Fixed tests

* StyleCI + validation tweak

* Update Client.php

* formatting

* [8.x] Automatic configuration of client uuids (laravel#1231)

Automatic configuration of client UUIDs via passport:install --uuids

* Update CHANGELOG.md

* Remove deprecated functionality (laravel#1235)

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update branch-alias

* Drop support for old JWT versions

* Bump league server dependency

* Update CHANGELOG.md

* [9.x] Implement passport:hash command (laravel#1238)

* Implement passport:hash command

* Skip records which are already hashed

* Fix client command when hashing secrets

* Use password_get_info

* Update HashCommand.php

Co-authored-by: Taylor Otwell <[email protected]>

* Apply fixes from StyleCI (laravel#1242)

* [9.x] Update UPGRADE.md (laravel#1240)

* Update UPGRADE.md

* Update UPGRADE.md

Co-authored-by: Taylor Otwell <[email protected]>

* fix hashing name

* Update CHANGELOG.md

* Update CHANGELOG.md

* Fix displaying secret in Vue component (laravel#1244)

* Moved provider check to bearer token only (laravel#1246)

* Fix create client call

* Update CHANGELOG.md

* Fix tests

* Add force option to hash command (laravel#1251)

* Fix updating clients in Vue

* Implement personal access client config

* formatting

* [9.x] Warn about one-time-hashed-secret (laravel#1259)

* Warn about one-time-hashed-secret

* Update ClientCommand.php

Co-authored-by: Taylor Otwell <[email protected]>

* Update UPGRADE.md

* [9.x] Implement secret modal (laravel#1258)

* Implement secret modal

* Add upgrade note on vue assets

* Revert change

* Update UPGRADE.md

Co-authored-by: Taylor Otwell <[email protected]>

* Update CHANGELOG.md

* Match name of personal access token methods to config

The config values included in passport.php don't match those shown in the upgrade guide for personal access tokens in v9.1. This matches the values with those in the config file.

* Allow to change Models database connection

* [9.x] Update UPGRADE.md (laravel#1265)

* Update UPGRADE.md

* Update UPGRADE.md

Co-authored-by: Taylor Otwell <[email protected]>

* wording

* formatting

* Change to forceFill. Fixes laravel#908. (laravel#1266)

* Nonstandard ID in the token's relationship with the user (laravel#1267)

* Update CHANGELOG.md

* Set actingAsClient token client as proper relationship

* formatting

* Fix HashCommand

* Update CHANGELOG.md

* correct test name

* Fix typo on param doc

* Cleanup tests

* Apply fixes from StyleCI (laravel#1291)

* Apply fixes from StyleCI (laravel#1292)

* Improve `passport:install` command (laravel#1294)

* Fix maxlength for token names (laravel#1300)

* Update CHANGELOG.md

* Allow guzzle v7

* Update CHANGELOG.md

* Match property sequence

* Update CHANGELOG.md

* Add index to access_token_id column

* Update tests.yml

* Use custom models in purge command if set (laravel#1316)

* Apply table responsive on table class (laravel#1318)

* Update CHANGELOG.md

* fix cookie handling for security release

* Apply fixes from StyleCI (laravel#1321)

* Update composer.json

* Update CHANGELOG.md

* Update CHANGELOG.md

* Remove old static personal client methods (laravel#1325)

* Remove Guzzle dependency (laravel#1327)

* Use newer Github actions (laravel#1329)

* Allow PHPUnit 9 (laravel#1328)

* Use only one PSR7 implementation (laravel#1330)

* [10.x] Support Laravel 8 (laravel#1336)

* Support Laravel 8

* Fix factories

* Apply fixes from StyleCI (laravel#1337)

* fix tests

Co-authored-by: Taylor Otwell <[email protected]>

* style: correct NBSP for regular spaces (laravel#1339)

* [10.x] Client Credentials Feature tests (laravel#1341)

* feat: add factory state method for client credentials grant

* test: add pass/fail tests for client credentials grant

* style: trailing comma

* Using assertSame to make assertion equals strict (laravel#1343)

* Update CHANGELOG.md

* wip

* [10.x] Upgrade guide (laravel#1345)

* Update README.md

* Update UPGRADE.md

Co-authored-by: Taylor Otwell <[email protected]>

* Update CHANGELOG.md

* [10.x] Use newFactory to properly reference factory (laravel#1349)

* Use newFactory to properly reference factory

* Update composer.json

* Update CHANGELOG.md

* Remove Vue components (laravel#1352)

* remove unnecessary return form service provider

* [10.x] Update the badges to use shields.io

* Update .gitattributes

* Update CHANGELOG.md

* [8.x] PHP 8 Support (laravel#1373)

* PHP 8 Support

* Update JWT usage

* Try out dev versions of jwt

* Use vcs

* Try composer token

* Update phpunit xml

* Fix test for JWT 3.4

* Try git url

* Bind JWT Parser to container for 4.x

* Add deprecation notice

* Use configuration object

* Use new token interface

* Update composer.json

* Update workflow

Co-authored-by: Luís Cobucci <[email protected]>

* Update CHANGELOG.md

* [10.x] Add purging of invalid refresh tokens to command (laravel#1396)

* Delete invalid refresh tokens

Delete refresh tokens referring to non-existing access tokens.

* Use whereDoesntHave() instead

* Add test for purge command

* Update description and output of command

* Update PurgeCommand.php

Co-authored-by: Taylor Otwell <[email protected]>

* Revert "[10.x] Add purging of invalid refresh tokens to command (laravel#1396)" (laravel#1397)

This reverts commit 985577c.

* Update to phpseclib v3 (laravel#1410)

* Update CHANGELOG.md

* [10.x] Backport phpseclib v2 (laravel#1418)

* Backport support for phpseclib v2

* Apply fixes from StyleCI (laravel#1417)

* Update CHANGELOG.md

* Use ubuntu-18.04

* Fix `$userId` type (laravel#1422)

* Update tests.yml

* fix binding

* use app helper

* Update CHANGELOG.md

* Update 1_Bug_report.md

* [10.x] Use Real Keys in Tests (laravel#1450)

* use real keys in tests

* revert composer change

* reset position of loadKeysFrom() function

* dark mode logo

* wip

* Fix tests (laravel#1469)

* Fix link to documentation

* Change logo to work on Dark Theme (laravel#1481)

* Apply fixes from StyleCI

* [10.x] Ensure client model factory always creates models with a primary key, even when events are disabled (laravel#1492)

* Ensure client model factory always creates models with a primary key, even when events are disabled

* Update ClientFactory.php

Co-authored-by: Taylor Otwell <[email protected]>

* PHP 8.1 support

* Update CHANGELOG.md

* Update phpunit.xml.dist

* Refactor expiry dates to intervals (laravel#1500)

* [10.x] Add custom encryption key for JWT tokens (laravel#1501)

* Added Passport custom encryption key

* Refactored encryptUsing method

* StyleCI fixes

* formatting

Co-authored-by: Taylor Otwell <[email protected]>

* Update CHANGELOG.md

* [10.x] Update test for Laravel 9 (laravel#1509)

* Update test for Laravel 9

* wip

* wip

* Fix str_replace error when third parameter ($subject) is null (laravel#1511)

* Fix str_replace error when third parameter ($subject) is null in PHP 8.1.0

str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/html/vendor/laravel/passport/src/PassportServiceProvider.php line 268

* Use single quotes to fix style error

* Update CHANGELOG.md

* fix: Internal method return types, php 8.1 tests compatibility

* Update CHANGELOG.md

* Update tests.yml

* Update tests.yml

* Laravel v9 support (laravel#1516)

* Laravel 9 support

* Update composer.json

* Update tests.yml

* Update CHANGELOG.md

* [10.x] Allow to use custom authorization server response (laravel#1521)

* Allow to use custom authorization server response

* Update src/Passport.php

Remove direct initialisation as "null"

Co-authored-by: Dries Vints <[email protected]>

* Update Passport.php

Co-authored-by: Dries Vints <[email protected]>
Co-authored-by: Taylor Otwell <[email protected]>

* Update CHANGELOG.md

* Minor documentation tweak to UPGRADE.md (laravel#1526)

* Update UPGRADE.md

I just went through the steps of upgrading passport from v8 to v10 and hit a minor snag that could have been solved by a tweak to the documentation.
When upgrading from v8 to v9 it says place two Passport static calls "within the `boot` method of your `AppServiceProvider`"
When upgrading from v9 to v10 it says you can remove the calls from your `AuthServiceProvider`.

I don't claim to know where those calls belonged in the first place, so this proposal just updates the documentation to list them both.

* Update UPGRADE.md

Co-authored-by: Taylor Otwell <[email protected]>

* Create update-changelog.yml

* [10.x] Fix Faker deprecations (laravel#1530)

When using this factory in feature tests with `$this->withoutDeprecationHandling();` call the test fails as the deprecation gets converted to an exception:

```
Since fakerphp/faker 1.14: Accessing property "company" is deprecated, use "company()" instead.
```

* Update CHANGELOG.md

* Use anonymous migrations (laravel#1531)

* Update CHANGELOG.md

* Update .styleci.yml

* Update .styleci.yml

* Update update-changelog.yml

* Upgrade firebase/php-jwt to ^6.0 (laravel#1538)

The firebase/php-jwt recently had to make breaking changes to resolve a security flaw in their library. This change upgrades that library and fixes the code that broke with the upgrade.

* Update CHANGELOG

* Create pull-requests.yml

* Update pull-requests.yml

* Update tests.yml (laravel#1540)

* [ADD] new URI Rule to validate URI and use it to RedirectRule (laravel#1544)

* Apply fixes from StyleCI

* Update CHANGELOG

* Update pull-requests.yml

* Update update-changelog.yml

* fixes

* update

Co-authored-by: MFlor <[email protected]>
Co-authored-by: Taylor Otwell <[email protected]>
Co-authored-by: Dries Vints <[email protected]>
Co-authored-by: Kieron Wiltshire <[email protected]>
Co-authored-by: Taylor Otwell <[email protected]>
Co-authored-by: Kevin Ullyott <[email protected]>
Co-authored-by: Antonio Pauletich <[email protected]>
Co-authored-by: Ilyes512 <[email protected]>
Co-authored-by: Mior Muhammad Zaki <[email protected]>
Co-authored-by: Lucas Michot <[email protected]>
Co-authored-by: Dries Vints <[email protected]>
Co-authored-by: Bill Riess <[email protected]>
Co-authored-by: Bill Riess <[email protected]>
Co-authored-by: Bill Riess <[email protected]>
Co-authored-by: Predarg Kostic <[email protected]>
Co-authored-by: Aaron Huisinga <[email protected]>
Co-authored-by: antonkomarev <[email protected]>
Co-authored-by: Geoff Garbers <[email protected]>
Co-authored-by: Afonso Gloeden <[email protected]>
Co-authored-by: Jordan Hoff <[email protected]>
Co-authored-by: Cor Bosman <[email protected]>
Co-authored-by: Panji Setya Nur Prawira <[email protected]>
Co-authored-by: 白俊遥 <[email protected]>
Co-authored-by: Ankur Kumar <[email protected]>
Co-authored-by: Martin Hettiger <[email protected]>
Co-authored-by: TARMIZI SANUSI <[email protected]>
Co-authored-by: Connor Tumbleson <[email protected]>
Co-authored-by: Chun-Sheng, Li <[email protected]>
Co-authored-by: Sergey Pashkevich <[email protected]>
Co-authored-by: Pataar <[email protected]>
Co-authored-by: Luís Cobucci <[email protected]>
Co-authored-by: Alexander Karlstad <[email protected]>
Co-authored-by: Mohamed Said <[email protected]>
Co-authored-by: Andrew Millington <[email protected]>
Co-authored-by: Ricardo Gobbo de Souza <[email protected]>
Co-authored-by: Francisco Madeira <[email protected]>
Co-authored-by: Taylor Otwell <[email protected]>
Co-authored-by: Choraimy Kroonstuiver <[email protected]>
Co-authored-by: Thijs Kok <[email protected]>
Co-authored-by: Kyryl Bogach <[email protected]>
Co-authored-by: ruben <[email protected]>
Co-authored-by: yaroslawww <[email protected]>
Co-authored-by: Jonathan Mitchell <[email protected]>
Co-authored-by: driesvints <[email protected]>
Co-authored-by: Markus Machatschek <[email protected]>
Co-authored-by: David Kanenwisher <[email protected]>
Co-authored-by: vic <[email protected]>
Co-authored-by: StyleCI Bot <[email protected]>
  • Loading branch information
Show file tree
Hide file tree
Showing 92 changed files with 1,996 additions and 798 deletions.
8 changes: 7 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
* text=auto

*.blade.php diff=html
*.css diff=css
*.html diff=html
*.md diff=markdown
*.php diff=php

/.github export-ignore
/art export-ignore
/tests export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.styleci.yml export-ignore
.travis.yml export-ignore
CHANGELOG.md export-ignore
phpunit.xml.dist export-ignore
UPGRADE.md
8 changes: 7 additions & 1 deletion .github/ISSUE_TEMPLATE/1_Bug_report.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
---
name: "Bug report"
about: 'Report a general library issue. Please ensure your version is still supported: https://laravel.com/docs/releases#support-policy'
about: "Report something that's broken. Please ensure your Laravel version is still supported: https://laravel.com/docs/releases#support-policy"
---

<!-- DO NOT THROW THIS AWAY -->
<!-- Fill out the FULL versions with patch versions -->

- Passport Version: #.#.#
- Laravel Version: #.#.#
- PHP Version: #.#.#
Expand All @@ -12,3 +15,6 @@ about: 'Report a general library issue. Please ensure your version is still supp


### Steps To Reproduce:

<!-- If possible, please provide a GitHub repository to demonstrate your issue -->
<!-- laravel new bug-report --github="--public" -->
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Support question
- name: Support Questions & Other
url: https://laravel.com/docs/contributions#support-questions
about: 'This repository is only for reporting bugs. If you need help using the library, click:'
about: 'This repository is only for reporting bugs. If you have a question or need help using the library, click:'
- name: Documentation issue
url: https://github.com/laravel/docs
about: For documentation issues, open a pull request at the laravel/docs repository
12 changes: 12 additions & 0 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: pull requests

on:
pull_request_target:
types: [opened]

permissions:
pull-requests: write

jobs:
uneditable:
uses: laravel/.github/.github/workflows/pull-requests.yml@main
45 changes: 45 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: tests

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

jobs:
tests:
runs-on: ubuntu-20.04

strategy:
fail-fast: true
matrix:
php: [7.3, 7.4, '8.0', 8.1]
laravel: [8, 9]
exclude:
- php: 7.3
laravel: 9
- php: 7.4
laravel: 9

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}

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, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
ini-values: error_reporting=E_ALL
tools: composer:v2
coverage: none

- name: Install dependencies
run: |
composer require "illuminate/contracts=^${{ matrix.laravel }}" --no-update
composer update --prefer-dist --no-interaction --no-progress
- name: Execute tests
run: vendor/bin/phpunit --verbose
9 changes: 9 additions & 0 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: update changelog

on:
release:
types: [released]

jobs:
update:
uses: laravel/.github/.github/workflows/update-changelog.yml@main
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 9b56fd4

Please sign in to comment.