Forward Auth Rules

Manage forward authentication rules for domain-based access control.

<%= link_to "New Rule", new_admin_forward_auth_rule_path, class: "block rounded-md bg-blue-600 px-3 py-2 text-center text-sm font-semibold text-white shadow-sm hover:bg-blue-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600" %>
<% @forward_auth_rules.each do |rule| %> <% end %>
Domain Pattern Headers Groups Status Actions
<%= link_to rule.domain_pattern, admin_forward_auth_rule_path(rule), class: "text-blue-600 hover:text-blue-900" %> <% if rule.headers_config.blank? %> Default <% elsif rule.headers_config.values.all?(&:blank?) %> None <% else %> Custom <% end %> <% if rule.allowed_groups.empty? %> All users <% else %> <%= rule.allowed_groups.count %> groups <% end %> <% if rule.active? %> Active <% else %> Inactive <% end %>
<%= link_to "View", admin_forward_auth_rule_path(rule), class: "text-blue-600 hover:text-blue-900 whitespace-nowrap" %> <%= link_to "Edit", edit_admin_forward_auth_rule_path(rule), class: "text-blue-600 hover:text-blue-900 whitespace-nowrap" %> <%= button_to "Delete", admin_forward_auth_rule_path(rule), method: :delete, data: { turbo_confirm: "Are you sure you want to delete this forward auth rule?" }, class: "text-red-600 hover:text-red-900 whitespace-nowrap" %>