<#-- $This file is distributed under the terms of the license in LICENSE$ -->

<#-- Template viewing the authorization mechanisms: current identifiers, factories, policies, etc. -->

${stylesheets.add('')}

## Authorization Info

#### ${i18n().current_user}

<#if currentUser?has_content>
URI: | ${currentUser.uri}
${i18n().first_name}: | ${currentUser.firstName}
${i18n().last_name}: | ${currentUser.lastName}
${i18n().email_address}: | ${currentUser.emailAddress}
${i18n().external_auth_id}: | ${currentUser.externalAuthId}
${i18n().login_count}: | ${currentUser.loginCount}
<#list currentUser.permissionSetUris as role>
${i18n().user_role}: | ${role}
<#else>
${i18n().not_logged_in}

#### ${i18n().identifiers}:

<#list identifiers as identifier>
${identifier}

#### ${i18n().associated_individuals}: <#if matchingProperty??> (${i18n().match_by(matchingProperty)}) <#else> (${i18n().matching_prop_not_defined})

<#if associatedIndividuals?has_content> <#list associatedIndividuals as associatedIndividual>
<#if associatedIndividual.editable>
<#else>
${associatedIndividual.uri} | ${i18n().may_edit} | ${i18n().may_not_edit}
<#else>
${i18n().none}

#### ${i18n().identifier_factories}:

<#list factories as factory>
${factory}

#### ${i18n().policies}:

<#list policies as policy>
${policy}

#### ${i18n().authenticator}:

${authenticator}