<%= t('site_settings.authentication.test_page.title', name: @o_auth.name) %>

<%= t('site_settings.authentication.test_page.fetched_user_data') %>

<%= JSON.pretty_generate(@user_profile, { indent: "  ", object_nl: "\n" }) %>

<%= t('activerecord.attributes.user.email') %> <%= @email_valid ? "✅" : "❌" %>

<%= t('activerecord.attributes.user.full_name') %> <%= @name_valid ? "✅" : "⚠️" %>

<%= t('site_settings.authentication.test_page.summary') %> <%= !@email_valid ? "❌" : !@name_valid ? "⚠️" : "✅" %>

<% if @email_valid and @name_valid %>

<%= t('site_settings.authentication.test_page.valid_configuration') %>

<% end %> <% if @email_valid and not @name_valid %>

<%= t('site_settings.authentication.test_page.warning_configuration', name: t('defaults.user_full_name')) %>

<% end %> <% if not @email_valid %>

<%= t('site_settings.authentication.test_page.invalid_configuration') %>

<% end %>