@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | { |
| 204 | 204 | if($this->token_validation_url) { |
| 205 | 205 | $this->logger->debug('validate oauth2 token via rfc7662 token validation endpoint ['.$this->token_validation_url.']', [ |
| 206 | - 'category' => get_class($this), |
|
| 206 | + 'category' => get_class($this), |
|
| 207 | 207 | ]); |
| 208 | 208 | |
| 209 | 209 | $url = str_replace('{token}', $token, $this->token_validation_url); |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | } |
| 215 | 215 | |
| 216 | 216 | $this->logger->debug('validate token via openid-connect userinfo_endpoint ['.$discovery['userinfo_endpoint'].']', [ |
| 217 | - 'category' => get_class($this), |
|
| 217 | + 'category' => get_class($this), |
|
| 218 | 218 | ]); |
| 219 | 219 | |
| 220 | 220 | $url = $discovery['userinfo_endpoint'].'?access_token='.$token; |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | if($code === 200) { |
| 232 | 232 | $attributes = json_decode($result, true); |
| 233 | 233 | $this->logger->debug('successfully verified oauth2 access token via authorization server', [ |
| 234 | - 'category' => get_class($this), |
|
| 234 | + 'category' => get_class($this), |
|
| 235 | 235 | ]); |
| 236 | 236 | |
| 237 | 237 | if(!isset($attributes[$this->identity_attribute])) { |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | return true; |
| 250 | 250 | } else { |
| 251 | 251 | $this->logger->error('failed verify oauth2 access token via authorization server, received status ['.$code.']', [ |
| 252 | - 'category' => get_class($this), |
|
| 252 | + 'category' => get_class($this), |
|
| 253 | 253 | ]); |
| 254 | 254 | |
| 255 | 255 | throw new Exception('failed verify oauth2 access token via authorization server'); |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | } |
| 275 | 275 | |
| 276 | 276 | $this->logger->debug('fetch user attributes from userinfo_endpoint ['.$discovery['userinfo_endpoint'].']', [ |
| 277 | - 'category' => get_class($this), |
|
| 277 | + 'category' => get_class($this), |
|
| 278 | 278 | ]); |
| 279 | 279 | |
| 280 | 280 | $url = $discovery['userinfo_endpoint'].'?access_token='.$this->access_token; |
@@ -289,13 +289,13 @@ discard block |
||
| 289 | 289 | if($code === 200) { |
| 290 | 290 | $attributes = json_decode($result, true); |
| 291 | 291 | $this->logger->debug('successfully requested user attributes from userinfo_endpoint', [ |
| 292 | - 'category' => get_class($this), |
|
| 292 | + 'category' => get_class($this), |
|
| 293 | 293 | ]); |
| 294 | 294 | |
| 295 | 295 | return $this->attributes = $attributes; |
| 296 | 296 | } else { |
| 297 | 297 | $this->logger->error('failed requesting user attributes from userinfo_endpoint, status code ['.$code.']', [ |
| 298 | - 'category' => get_class($this), |
|
| 298 | + 'category' => get_class($this), |
|
| 299 | 299 | ]); |
| 300 | 300 | |
| 301 | 301 | throw new Exception('failed requesting user attribute from userinfo_endpoint'); |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | } else { |
| 66 | 66 | $this->store = $this->variablesToTree($variables); |
| 67 | 67 | } |
| 68 | - } |
|
| 68 | + } |
|
| 69 | 69 | |
| 70 | 70 | |
| 71 | 71 | /** |
@@ -120,12 +120,12 @@ discard block |
||
| 120 | 120 | $key = $name[$i]; |
| 121 | 121 | |
| 122 | 122 | try { |
| 123 | - // create new subtree if requested subtree already has a value |
|
| 124 | - if (!($tree->$key instanceof Config)) { |
|
| 125 | - $tree[$key] = new Config([$tree->$key]); |
|
| 126 | - } |
|
| 123 | + // create new subtree if requested subtree already has a value |
|
| 124 | + if (!($tree->$key instanceof Config)) { |
|
| 125 | + $tree[$key] = new Config([$tree->$key]); |
|
| 126 | + } |
|
| 127 | 127 | |
| 128 | - $tree = $tree->$key; |
|
| 128 | + $tree = $tree->$key; |
|
| 129 | 129 | } catch (Exception $e) { |
| 130 | 130 | // set value if last keypart or create subtree |
| 131 | 131 | if($i == (count($name) - 1)) { |
@@ -191,7 +191,7 @@ |
||
| 191 | 191 | } |
| 192 | 192 | |
| 193 | 193 | $args[$param_name] = $this->findParentService($name, $type_class, $config, $parents); |
| 194 | - } |
|
| 194 | + } |
|
| 195 | 195 | } |
| 196 | 196 | |
| 197 | 197 | return $this->createInstance($name, $reflection, $args, $config, $parents); |