|
31 | 31 | <body> |
32 | 32 | <h1>simpleSAMLphp Test SP</h1> |
33 | 33 |
|
| 34 | +<?php if ($view['samlResponseIsError']): ?> |
| 35 | + <?php /* The IdP returned a SAML error response to the last login. Shown first: it is the result of what the user did last */ ?> |
| 36 | + <h3 class="login-failed">Last login failed</h3> |
| 37 | + <p>The Identity Provider returned a SAML error response. The XML of the response is shown at the end of the page.</p> |
| 38 | + <h4>SAML Error Status</h4> |
| 39 | + <?php SAMLResponseFieldsToTable($samlResponse, array('ID', 'InResponseTo', 'IssueInstant', 'Destination', 'Issuer', 'StatusCode', 'SubStatusCode', 'StatusMessage')) ?> |
| 40 | + <?php if ($auth !== null): ?> |
| 41 | + <p id="earlier_login">You are still logged in to SP <strong><?= e($view['pageSP']) ?></strong> from an earlier login, at <?= e($auth['authnInstant']) ?>. The information below is from that login.</p> |
| 42 | + <?php endif ?> |
| 43 | +<?php endif ?> |
| 44 | + |
34 | 45 | <?php if ($auth !== null): ?> |
35 | 46 | <label>You are logged in to SP:</label><code><?= e($view['pageSP']) ?></code><br /> |
36 | 47 | <label>IdP EntityID:</label><code><?= e($auth['idpEntityID']) ?></code><br /> |
|
39 | 50 | <p><button class="logout" type="submit" name="action" value="logout" title="Log out of <?= e($view['pageSP']) ?>. Note that this does not log you out of any Identity Provider.">Logout</button></p> |
40 | 51 | </form> |
41 | 52 |
|
42 | | - <h3>Session</h3> |
| 53 | + <h3>SP Session (<?= e($view['pageSP']) ?>)<?= $view['samlResponseIsError'] ? ' from an earlier login, still active' : '' ?></h3> |
43 | 54 | <p> |
44 | 55 | <?php if ($auth['sessionIndex'] !== ''): ?> |
45 | 56 | <label>SessionIndex:</label><code style="background-color: <?= HTMLColorFingerprint($auth['sessionIndex']) ?>"><?= e($auth['sessionIndex']) ?></code><br /> |
|
87 | 98 | <button id="login_2" class="login" type="submit" name="action" value="login" title="Log in to the selected Service Provider with the selected Identity Provider (again)">Login</button> <button type="submit" name="action" value="reset">Reset</button><br /> |
88 | 99 | </p> |
89 | 100 |
|
90 | | -<?php if ($view['samlResponseIsError']): ?> |
91 | | - <h3>SAML Error Status</h3> |
92 | | - <?php SAMLResponseFieldsToTable($samlResponse, array('ID', 'InResponseTo', 'IssueInstant', 'Destination', 'Issuer', 'StatusCode', 'SubStatusCode', 'StatusMessage')) ?> |
93 | | - <?php /* The XML of the response is shown at the end of the page */ ?> |
94 | | -<?php endif ?> |
95 | | - |
96 | 101 | <h3>Advanced options</h3> |
97 | 102 | <?php if ($view['directLoginLink'] !== null): ?> |
98 | 103 | <p> |
|
0 commit comments