attrresolution.html 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <!DOCTYPE html>
  2. <html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{monitoring/layout}">
  3. <head>
  4. <title th:text="#{cas.attrresolutionview.pagetitle}"></title>
  5. <script th:inline="javascript">
  6. /*<![CDATA[*/
  7. var urls = {
  8. resolveAttributes: /*[[@{/status/attrresolution/resolveattrs}]]*/,
  9. releaseAttributes: /*[[@{/status/attrresolution/releaseattrs}]]*/
  10. };
  11. /*]]>*/
  12. </script>
  13. <script type="text/javascript" th:inline="javascript">
  14. function jqueryReady() {
  15. head.load(
  16. /*[[@{/js/attrresolution.js}]]*/
  17. );
  18. }
  19. </script>
  20. </head>
  21. <body>
  22. <div layout:fragment="content">
  23. <div id="attrResolution">
  24. <ul class="nav nav-tabs">
  25. <li class="nav-item"><a data-toggle="tab" class="nav-link active" href="#attributeResolutionPanel"
  26. th:text="#{cas.attrresolutionview.pagetitle}"/></li>
  27. <li class="nav-item"><a data-toggle="tab" class="nav-link" href="#attributeReleasePanel"
  28. th:text="#{cas.attrreleaseview.pagetitle}"/></li>
  29. </ul>
  30. <div class="tab-content clearfix">
  31. <div class="tab-pane active" id="attributeResolutionPanel">
  32. <h3 th:text="#{cas.attrresolutionview.pagetitle}"/>
  33. <p>Allow CAS to execute a query against configured attribute repositories to determine the set of
  34. attributes that may be retrieved and resolved for
  35. a given user. Note that this functionality is only productive if CAS is configured to
  36. <strong>NOT</strong> directly retrieve attributes as part of
  37. the authentication attempt.
  38. <p/>
  39. <div class="" id="">
  40. <form method="post" id="fm1" class="">
  41. <div class="form-group">
  42. <label for="uid" class="fl-label" th:utext="#{cas.attrresolutionview.label.uid}"></label>
  43. <input type="text" class="form-control"
  44. size="35"
  45. tabindex="0"
  46. id="uid"
  47. name="uid"
  48. autocomplete="off" required/>
  49. </div>
  50. <input class="btn btn-success"
  51. name="_eventId_submit"
  52. accesskey="l"
  53. th:value="#{cas.attrresolutionview.button.submit}"
  54. tabindex="1"
  55. id="submitResolve"
  56. type="submit"/>
  57. </form>
  58. <div class="alert alert-info" id="status"></div>
  59. <table id="attributesTable" class="table table-striped table-bordered mt-3">
  60. <thead>
  61. <tr>
  62. <th>Attribute</th>
  63. <th>Value(s)</th>
  64. </tr>
  65. </thead>
  66. <tbody>
  67. </tbody>
  68. </table>
  69. </div>
  70. </div>
  71. <div class="tab-pane" id="attributeReleasePanel">
  72. <h3 th:text="#{cas.attrreleaseview.pagetitle}"/>
  73. <p>Allow CAS to determine the collection of attributes that will be released to a given application. The
  74. application will be matched against the CAS service registry to find the corresponding record whose
  75. associated policies determine released attributes, etc.
  76. <p/>
  77. <form method="post" id="fmrel" class="">
  78. <div class="form-group">
  79. <label for="username" class="fl-label">Username:</label>
  80. <input type="text" class="form-control"
  81. size="35"
  82. tabindex="0"
  83. id="username"
  84. name="username"
  85. placeholder="Username..."
  86. autocomplete="off" required/>
  87. </div>
  88. <div class="form-group">
  89. <label for="password" class="fl-label">Password:</label>
  90. <input type="password" class="form-control"
  91. size="35"
  92. tabindex="0"
  93. id="password"
  94. name="password"
  95. placeholder="Password..."
  96. autocomplete="off" required/>
  97. </div>
  98. <div class="form-group">
  99. <label for="service" class="fl-label">Service:</label>
  100. <input type="text" class="form-control"
  101. size="35"
  102. tabindex="0"
  103. id="service"
  104. name="service"
  105. placeholder="Application URL (i.e. https://app.example.org)"
  106. autocomplete="off" required/>
  107. </div>
  108. <input class="btn btn-success"
  109. name="_eventId_submit"
  110. accesskey="l"
  111. th:value="#{cas.attrresolutionview.button.submit}"
  112. tabindex="1"
  113. id="submitRelease"
  114. type="submit"/>
  115. </form>
  116. <div id="validationresult" class="mt-3">
  117. <h3>Response</h3>
  118. <div id="validationresponse"></div>
  119. <ul class="nav nav-tabs">
  120. <li class="nav-item"><a data-toggle="tab" class="nav-link active" href="#cas1">CAS v1</a>
  121. </li>
  122. <li class="nav-item"><a data-toggle="tab" class="nav-link" href="#cas2">CAS v2</a></li>
  123. <li class="nav-item"><a data-toggle="tab" class="nav-link" href="#cas3Xml">CAS v3 XML</a>
  124. </li>
  125. <li class="nav-item"><a data-toggle="tab" class="nav-link" href="#cas3Json">CAS v3 JSON</a>
  126. </li>
  127. <li class="nav-item"><a data-toggle="tab" class="nav-link" href="#serviceJson">Service</a>
  128. </li>
  129. </ul>
  130. <div class="tab-content">
  131. <div class="tab-pane active" id="cas1"></div>
  132. <div class="tab-pane" id="cas2"></div>
  133. <div class="tab-pane" id="cas3Xml"></div>
  134. <div class="tab-pane" id="cas3Json"></div>
  135. <div class="tab-pane" id="serviceJson"></div>
  136. </div>
  137. </div>
  138. </div>
  139. </div>
  140. <div>
  141. <div th:replace="monitoring/fragments/footerButtons"/>
  142. </div>
  143. </div>
  144. </div>
  145. </body>
  146. </html>