-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathfederation.twig
More file actions
119 lines (109 loc) · 4.08 KB
/
federation.twig
File metadata and controls
119 lines (109 loc) · 4.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{% set subPageTitle = 'Federation Settings'|trans %}
{% extends "@oidc/base.twig" %}
{% block oidcContent %}
<p>
{{ 'Federation Enabled'|trans }}:
{{ moduleConfig.getFederationEnabled ? 'Yes'|trans : 'No'|trans }}
</p>
<h4>{{ 'Entity'|trans }}</h4>
<p>
{{ 'Configuration URL'|trans }}:
<a href="{{ routes.urlFederationConfiguration }}" target="_blank">{{ routes.urlFederationConfiguration }}</a>
</p>
<p>
{{ 'Issuer'|trans }}: {{ moduleConfig.getIssuer }}
<br>
{{ 'Organization Name'|trans }}: {{ moduleConfig.getOrganizationName }}
<br>
{{ 'Logo URI'|trans }}:
<a href="{{ moduleConfig.getLogoUri }}" target="_blank">{{ moduleConfig.getLogoUri }}</a>
<br>
{{ 'Policy URI'|trans }}:
<a href="{{ moduleConfig.getPolicyUri }}" target="_blank">{{ moduleConfig.getPolicyUri }}</a>
<br>
{{ 'Homepage URI'|trans }}:
<a href="{{ moduleConfig.getHomepageUri }}" target="_blank">{{ moduleConfig.getHomepageUri }}</a>
<br>
{{ 'Contacts'|trans }}:
{% if moduleConfig.getContacts is not empty %}
{% for contact in moduleConfig.getContacts %}
<br>
- {{ contact }}
{% endfor %}
{% else %}
{{ 'N/A'|trans }}
{% endif %}
</p>
<p>
{{ 'Entity Statement Duration'|trans }}:
{{ moduleConfig.getFederationEntityStatementDuration|date("%mm %dd %hh %i' %s''") }}
</p>
<h4>{{ 'PKI'|trans }}</h4>
<p>
{{ 'Private Key'|trans }}: {{ moduleConfig.getFederationPrivateKeyPath }}
<br>
{{ 'Private Key Password Set'|trans }}:
{{ moduleConfig.getFederationPrivateKeyPassPhrase ? 'Yes'|trans : 'No'|trans }}
<br>
{{ 'Public Key'|trans }}: {{ moduleConfig.getFederationCertPath }}
</p>
<p>
{{ 'Signing Algorithm'|trans }}: {{ moduleConfig.getFederationSigner.algorithmId }}
</p>
<h4>{{ 'Trust Anchors'|trans }}</h4>
{% if moduleConfig.getFederationTrustAnchors is not empty %}
{% for trustAnchorId, jwks in moduleConfig.getFederationTrustAnchors %}
<p>
- {{ trustAnchorId }}
<br>
{{ 'JWKS'|trans }}:
{% if jwks|default is not empty %}
<code class="code-box code-box-content">
{{- jwks -}}
</code>
{% else %}
{{ 'N/A'|trans }}
{% endif %}
</p>
{% endfor %}
{% else %}
<p>{{ 'N/A'|trans }}</p>
{% endif %}
<h4>{{ 'Authority Hints'|trans }}</h4>
<p>
{% if moduleConfig.getFederationAuthorityHints|default is not empty %}
{% for authorityHint in moduleConfig.getFederationAuthorityHints %}
{% if not loop.first %}
<br>
{% endif %}
- {{ authorityHint }}
{% endfor %}
{% else %}
{{ 'N/A'|trans }}
{% endif %}
</p>
<h4>{{ 'Trust Marks'|trans }}</h4>
{% if trustMarks|default is not empty %}
{% for trustMark in trustMarks %}
<p>
- {{ trustMark.getPayload.trust_mark_id }}
<code class="code-box code-box-content">
{{- trustMark.getPayload|json_encode(constant('JSON_PRETTY_PRINT') b-or constant('JSON_UNESCAPED_SLASHES')) -}}
</code>
</p>
{% endfor %}
{% else %}
<p>{{ 'N/A'|trans }}</p>
{% endif %}
<h4>{{ 'Cache'|trans }}</h4>
<p>
{{ 'Cache Adapter'|trans }}:
{{ moduleConfig.getFederationCacheAdapterClass|default('N/A'|trans) }}
<br>
{{ 'Maximum Cache Duration For Fetched Artifacts'|trans }}:
{{ moduleConfig.getFederationCacheMaxDurationForFetched|date("%mm %dd %hh %i' %s''") }}
<br>
{{ 'Cache Duration For Produced Artifacts'|trans }}:
{{ moduleConfig.getFederationEntityStatementCacheDurationForProduced|date("%mm %dd %hh %i' %s''") }}
</p>
{% endblock oidcContent -%}