diff --git a/app/views/admin/applications/show.html.erb b/app/views/admin/applications/show.html.erb index e5681f7..390f5f0 100644 --- a/app/views/admin/applications/show.html.erb +++ b/app/views/admin/applications/show.html.erb @@ -25,6 +25,32 @@ Public clients do not have a client secret. PKCE is required. <% end %> + + <% env_lines = [] %> + <% env_lines << "OIDC_CLIENT_ID=#{flash[:client_id]}" %> + <% if flash[:client_secret] %> + <% env_lines << "OIDC_CLIENT_SECRET=#{flash[:client_secret]}" %> + <% elsif flash[:public_client] %> + <% env_lines << "OIDC_CLIENT_SECRET=" %> + <% end %> + <% env_lines << "OIDC_DISCOVERY_URL=#{OidcJwtService.issuer_url}" %> + <% env_lines << "OIDC_PROVIDER_NAME='Clinch'" %> + <% env_lines << "OIDC_REQUIRE_PKCE=#{@application.requires_pkce? ? 'true' : 'false'}" %> + +