<% if flash[:client_id] && flash[:client_secret] %>

🔐 OIDC Client Credentials

Copy these credentials now. The client secret will not be shown again.

Client ID:
<%= flash[:client_id] %>
Client Secret:
<%= flash[:client_secret] %>
<% end %>

<%= @application.name %>

<%= @application.description %>

<%= link_to "Edit", edit_admin_application_path(@application), class: "rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50" %> <% if @application.oidc? %> <%= link_to "Manage Roles", roles_admin_application_path(@application), class: "rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500" %> <% end %> <%= button_to "Delete", admin_application_path(@application), method: :delete, data: { turbo_confirm: "Are you sure?" }, class: "rounded-md bg-red-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-500" %>

Basic Information

Slug
<%= @application.slug %>
Type
<% case @application.app_type %> <% when "oidc" %> OIDC <% when "saml" %> SAML <% end %>
Status
<% if @application.active? %> Active <% else %> Inactive <% end %>
<% if @application.oidc? %>

OIDC Credentials

<%= button_to "Regenerate Credentials", regenerate_credentials_admin_application_path(@application), method: :post, data: { turbo_confirm: "This will invalidate the current credentials. Continue?" }, class: "text-sm text-red-600 hover:text-red-900" %>
Client ID
<%= @application.client_id %>
Client Secret
🔒 Client secret is stored securely and cannot be displayed

To get a new client secret, use the "Regenerate Credentials" button above.

Redirect URIs
<% if @application.redirect_uris.present? %> <% @application.parsed_redirect_uris.each do |uri| %> <%= uri %> <% end %> <% else %> No redirect URIs configured <% end %>
<% end %>

Access Control

Allowed Groups
<% if @allowed_groups.empty? %>

No groups assigned - all active users can access this application.

<% else %>
    <% @allowed_groups.each do |group| %>
  • <%= group.name %>

    <%= pluralize(group.users.count, "member") %>

  • <% end %>
<% end %>