applications.ftl 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <#import "template.ftl" as layout>
  2. <@layout.mainLayout active='applications' bodyClass='applications'; section>
  3. <div class="row">
  4. <div class="col-md-10">
  5. <h2>${msg("applicationsHtmlTitle")}</h2>
  6. </div>
  7. </div>
  8. <form action="${url.applicationsUrl}" method="post">
  9. <input type="hidden" id="stateChecker" name="stateChecker" value="${stateChecker}">
  10. <input type="hidden" id="referrer" name="referrer" value="${stateChecker}">
  11. <table class="table table-striped table-bordered">
  12. <thead>
  13. <tr>
  14. <td>${msg("application")}</td>
  15. <td>${msg("grantedPermissions")}</td>
  16. <td>${msg("additionalGrants")}</td>
  17. <td>${msg("action")}</td>
  18. </tr>
  19. </thead>
  20. <tbody>
  21. <#list applications.applications as application>
  22. <tr>
  23. <td>
  24. <#if application.effectiveUrl?has_content><a href="${application.effectiveUrl}"></#if>
  25. <#if application.client.name?has_content>${advancedMsg(application.client.name)}<#else>${application.client.clientId}</#if>
  26. <#if application.effectiveUrl?has_content></a></#if>
  27. </td>
  28. <td>
  29. <#if application.client.consentRequired>
  30. <#list application.clientScopesGranted as claim>
  31. ${advancedMsg(claim)}<#if claim_has_next>, </#if>
  32. </#list>
  33. <#else>
  34. <strong>${msg("fullAccess")}</strong>
  35. </#if>
  36. </td>
  37. <td>
  38. <#list application.additionalGrants as grant>
  39. ${advancedMsg(grant)}<#if grant_has_next>, </#if>
  40. </#list>
  41. </td>
  42. <td>
  43. <#if (application.client.consentRequired && application.clientScopesGranted?has_content) || application.additionalGrants?has_content>
  44. <button type='submit' class='${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!}' id='revoke-${application.client.clientId}' name='clientId' value="${application.client.id}">${msg("revoke")}</button>
  45. </#if>
  46. </td>
  47. </tr>
  48. </#list>
  49. </tbody>
  50. </table>
  51. </form>
  52. </@layout.mainLayout>