@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | { |
| 205 | 205 | if($this->token_validation_url) { |
| 206 | 206 | $this->logger->debug('validate oauth2 token via rfc7662 token validation endpoint ['.$this->token_validation_url.']', [ |
| 207 | - 'category' => get_class($this), |
|
| 207 | + 'category' => get_class($this), |
|
| 208 | 208 | ]); |
| 209 | 209 | |
| 210 | 210 | $url = str_replace('{token}', $token, $this->token_validation_url); |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | } |
| 217 | 217 | |
| 218 | 218 | $this->logger->debug('validate token via openid-connect userinfo_endpoint ['.$discovery['userinfo_endpoint'].']', [ |
| 219 | - 'category' => get_class($this), |
|
| 219 | + 'category' => get_class($this), |
|
| 220 | 220 | ]); |
| 221 | 221 | |
| 222 | 222 | $url = $discovery['userinfo_endpoint'].'?access_token='.$token; |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | } |
| 238 | 238 | |
| 239 | 239 | $this->logger->error('failed verify oauth2 access token via authorization server, received status ['.$code.']', [ |
| 240 | - 'category' => get_class($this), |
|
| 240 | + 'category' => get_class($this), |
|
| 241 | 241 | ]); |
| 242 | 242 | |
| 243 | 243 | return false; |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | |
| 260 | 260 | if($response['active']) { |
| 261 | 261 | $this->logger->debug('successfully verified oauth2 access token via authorization server', [ |
| 262 | - 'category' => get_class($this), |
|
| 262 | + 'category' => get_class($this), |
|
| 263 | 263 | ]); |
| 264 | 264 | |
| 265 | 265 | if(!isset($response['username'])) { |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | if ($code === 200) { |
| 288 | 288 | $attributes = $response; |
| 289 | 289 | $this->logger->debug('successfully verified oauth2 access token via authorization server', [ |
| 290 | - 'category' => get_class($this), |
|
| 290 | + 'category' => get_class($this), |
|
| 291 | 291 | ]); |
| 292 | 292 | |
| 293 | 293 | if(!isset($attributes[$this->identity_attribute])) { |
@@ -321,7 +321,7 @@ discard block |
||
| 321 | 321 | } |
| 322 | 322 | |
| 323 | 323 | $this->logger->debug('fetch user attributes from userinfo_endpoint ['.$discovery['userinfo_endpoint'].']', [ |
| 324 | - 'category' => get_class($this), |
|
| 324 | + 'category' => get_class($this), |
|
| 325 | 325 | ]); |
| 326 | 326 | |
| 327 | 327 | $url = $discovery['userinfo_endpoint'].'?access_token='.$this->access_token; |
@@ -336,13 +336,13 @@ discard block |
||
| 336 | 336 | if($code === 200) { |
| 337 | 337 | $attributes = json_decode($result, true); |
| 338 | 338 | $this->logger->debug('successfully requested user attributes from userinfo_endpoint', [ |
| 339 | - 'category' => get_class($this), |
|
| 339 | + 'category' => get_class($this), |
|
| 340 | 340 | ]); |
| 341 | 341 | |
| 342 | 342 | return $this->attributes = $attributes; |
| 343 | 343 | } else { |
| 344 | 344 | $this->logger->error('failed requesting user attributes from userinfo_endpoint, status code ['.$code.']', [ |
| 345 | - 'category' => get_class($this), |
|
| 345 | + 'category' => get_class($this), |
|
| 346 | 346 | ]); |
| 347 | 347 | |
| 348 | 348 | throw new Exception('failed requesting user attribute from userinfo_endpoint'); |