@@ -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); |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | } |
| 216 | 216 | |
| 217 | 217 | $this->logger->debug('validate token via openid-connect userinfo_endpoint ['.$discovery['userinfo_endpoint'].']', [ |
| 218 | - 'category' => get_class($this), |
|
| 218 | + 'category' => get_class($this), |
|
| 219 | 219 | ]); |
| 220 | 220 | |
| 221 | 221 | $url = $discovery['userinfo_endpoint'].'?access_token='.$token; |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | if($code === 200) { |
| 233 | 233 | $attributes = json_decode($result, true); |
| 234 | 234 | $this->logger->debug('successfully verified oauth2 access token via authorization server', [ |
| 235 | - 'category' => get_class($this), |
|
| 235 | + 'category' => get_class($this), |
|
| 236 | 236 | ]); |
| 237 | 237 | |
| 238 | 238 | if(!isset($attributes[$this->identity_attribute])) { |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | return true; |
| 251 | 251 | } else { |
| 252 | 252 | $this->logger->error('failed verify oauth2 access token via authorization server, received status ['.$code.']', [ |
| 253 | - 'category' => get_class($this), |
|
| 253 | + 'category' => get_class($this), |
|
| 254 | 254 | ]); |
| 255 | 255 | |
| 256 | 256 | throw new Exception('failed verify oauth2 access token via authorization server'); |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | } |
| 276 | 276 | |
| 277 | 277 | $this->logger->debug('fetch user attributes from userinfo_endpoint ['.$discovery['userinfo_endpoint'].']', [ |
| 278 | - 'category' => get_class($this), |
|
| 278 | + 'category' => get_class($this), |
|
| 279 | 279 | ]); |
| 280 | 280 | |
| 281 | 281 | $url = $discovery['userinfo_endpoint'].'?access_token='.$this->access_token; |
@@ -290,13 +290,13 @@ discard block |
||
| 290 | 290 | if($code === 200) { |
| 291 | 291 | $attributes = json_decode($result, true); |
| 292 | 292 | $this->logger->debug('successfully requested user attributes from userinfo_endpoint', [ |
| 293 | - 'category' => get_class($this), |
|
| 293 | + 'category' => get_class($this), |
|
| 294 | 294 | ]); |
| 295 | 295 | |
| 296 | 296 | return $this->attributes = $attributes; |
| 297 | 297 | } else { |
| 298 | 298 | $this->logger->error('failed requesting user attributes from userinfo_endpoint, status code ['.$code.']', [ |
| 299 | - 'category' => get_class($this), |
|
| 299 | + 'category' => get_class($this), |
|
| 300 | 300 | ]); |
| 301 | 301 | |
| 302 | 302 | throw new Exception('failed requesting user attribute from userinfo_endpoint'); |