| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function loadUserByResponse(ResponseInterface $response): CasUserInterface |
||
| 24 | { |
||
| 25 | /** @var \drupol\psrcas\Introspection\Contract\ServiceValidate $introspect */ |
||
| 26 | $introspect = Introspector::detect($response); |
||
| 27 | |||
| 28 | return new EuloginUser($introspect->getParsedResponse()['serviceResponse']['authenticationSuccess']); |
||
| 29 | } |
||
| 59 |