@@ 121-130 (lines=10) @@ | ||
118 | $samlResponse = $this->mockGateway->handleSsoSuccess($request, $this->getFullRequestUri($request), $attributes); |
|
119 | return $this->getResponseData($request, $samlResponse); |
|
120 | ||
121 | case ($status == 'user-cancelled'): |
|
122 | // Parse user cancelled |
|
123 | $samlResponse = $this->mockGateway->handleSsoFailure( |
|
124 | $request, |
|
125 | $this->getFullRequestUri($request), |
|
126 | Constants::STATUS_RESPONDER, |
|
127 | Constants::STATUS_AUTHN_FAILED, |
|
128 | 'Authentication cancelled by user' |
|
129 | ); |
|
130 | return $this->getResponseData($request, $samlResponse); |
|
131 | ||
132 | case ($status == 'unknown'): |
|
133 | // Parse unknown |
|
@@ 132-140 (lines=9) @@ | ||
129 | ); |
|
130 | return $this->getResponseData($request, $samlResponse); |
|
131 | ||
132 | case ($status == 'unknown'): |
|
133 | // Parse unknown |
|
134 | $samlResponse = $this->mockGateway->handleSsoFailure( |
|
135 | $request, |
|
136 | $this->getFullRequestUri($request), |
|
137 | Constants::STATUS_RESPONDER, |
|
138 | Constants::STATUS_AUTHN_FAILED |
|
139 | ); |
|
140 | return $this->getResponseData($request, $samlResponse); |
|
141 | default: |
|
142 | throw new BadRequestHttpException(sprintf( |
|
143 | 'Could not create a response for status %s', |