|
@@ -94,9 +94,9 @@ discard block |
|
|
block discarded – undo |
|
94
|
94
|
method_exists($this->privateKey, 'getKeyContents') |
|
95
|
95
|
&& !empty($this->privateKey->getKeyContents()) |
|
96
|
96
|
) { |
|
97
|
|
- $key = InMemory::plainText($this->privateKey->getKeyContents(), (string)$this->privateKey->getPassPhrase()); |
|
|
97
|
+ $key = InMemory::plainText($this->privateKey->getKeyContents(), (string) $this->privateKey->getPassPhrase()); |
|
98
|
98
|
} else { |
|
99
|
|
- $key = LocalFileReference::file($this->privateKey->getKeyPath(), (string)$this->privateKey->getPassPhrase()); |
|
|
99
|
+ $key = LocalFileReference::file($this->privateKey->getKeyPath(), (string) $this->privateKey->getPassPhrase()); |
|
100
|
100
|
} |
|
101
|
101
|
|
|
102
|
102
|
$token = $builder->getToken(new Sha256(), $key); |
|
@@ -113,7 +113,7 @@ discard block |
|
|
block discarded – undo |
|
113
|
113
|
private function isOpenIDRequest($scopes) |
|
114
|
114
|
{ |
|
115
|
115
|
// Verify scope and make sure openid exists. |
|
116
|
|
- $valid = false; |
|
|
116
|
+ $valid = false; |
|
117
|
117
|
|
|
118
|
118
|
foreach ($scopes as $scope) { |
|
119
|
119
|
if ($scope->getIdentifier() === 'openid') { |
Please login to merge, or discard this patch.