Skip to content

Commit

Permalink
BUGFIX: Fixed check for empty secret and add composer requirements
Browse files Browse the repository at this point in the history
* Fixed check for empty secret
* Added missing guzzlehttp/psr7 requirement
  • Loading branch information
sebastiansommer authored and daniellienert committed May 22, 2019
1 parent b091170 commit 6e23ec1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Command/OAuthServerCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function createClientCredentialsCommand(string $identifier, string $name,
$this->quit(1);
}

if ($secret === null) {
if ($secret === '') {
$secret = base64_encode(random_bytes(30));
}

Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"type": "neos-package",
"require": {
"neos/flow": "^5.0",
"league/oauth2-server": "^6.0"
"league/oauth2-server": "^6.0",
"guzzlehttp/psr7": "~1.5.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 6e23ec1

Please sign in to comment.