Skip to content

Commit

Permalink
Merge pull request #31 from pyaehein/master
Browse files Browse the repository at this point in the history
Passport 8 support
  • Loading branch information
alasdairmackenzie authored Feb 13, 2020
2 parents a881926 + fda9c8a commit 7168c39
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ class User extends Authenticatable

### Laravel version Compatibility

Laravel | Passport | Package
:---------|:---------------------------|:----------
5.5.x | 4.0.x, 5.0.x, 6.0.x, 7.0.x | 1.1.x
5.6.x | 4.0.x, 5.0.x, 6.0.x, 7.0.x | 1.1.x
6.x | 4.0.x, 5.0.x, 6.0.x, 7.x | 1.2.x
Laravel | Passport | Package
:---------|:-----------------------------|:----------
5.5.x | 4.0.x, 5.0.x, 6.0.x, 7.0.x | 1.1.x
5.6.x | 4.0.x, 5.0.x, 6.0.x, 7.0.x | 1.1.x
6.x | 4.0.x, 5.0.x, 6.0.x, 7.x, 8.x| 1.2.x

And add the service provider in `config/app.php`:

Expand Down
12 changes: 11 additions & 1 deletion src/Passport/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,15 @@ public function firstParty()
public function skipsAuthorization()
{
return false;
}
}

/**
* Determine if the client is a confidential client.
*
* @return bool
*/
public function confidential()
{
return ! empty($this->secret);
}
}

0 comments on commit 7168c39

Please sign in to comment.