Apply ACLs to internal oidc clients

This commit is contained in:
Johannes Zellner
2023-04-25 13:13:04 +02:00
parent debcf9c9e9
commit 5b6e6a556a
2 changed files with 49 additions and 12 deletions

View File

@@ -26,15 +26,23 @@
<div class="col-md-12" style="text-align: center;">
<img width="128" height="128" style="margin-top: -84px" src="/api/v1/cloudron/avatar"/>
<br/>
<h1>Authorize <%= name %></h1>
<% if (hasAccess) { -%>
<h3>Authorize for <b><%= name %></b></h3>
<% } else { -%>
<h3>You do not have access to <b><%= name %></b></h3>
<% } -%>
</div>
</div>
<br/>
<div class="row">
<div class="col-md-12 text-center">
<% if (hasAccess) { -%>
<form method="post" action="<%= submitUrl %>">
<button class="btn btn-primary btn-outline" type="submit">Authorize</button>
</form>
<% } else { -%>
<a class="btn btn-primary btn-outline" href="<%= submitUrl %>">Continue</a>
<% } -%>
</div>
</div>
</div>