Commit dd710c30 authored by Xavier Guimard's avatar Xavier Guimard

Use OIDC displayName in tab (closes: #826)

parent 7558413c
......@@ -470,8 +470,17 @@ sub mkOidcConsent {
'oidcConsents',
params => {
partners => [
map { { name => $_ } }
( split /,/, $session->{_oidcConnectedRP} )
map {
$self->conf->{oidcRPMetaDataOptions}
and $self->conf->{oidcRPMetaDataOptions}->{$_}
? {
name => $_,
displayName =>
$self->conf->{oidcRPMetaDataOptions}->{$_}
->{oidcRPMetaDataOptionsDisplayName},
}
: ()
} ( split /,/, $session->{_oidcConnectedRP} )
],
consents => $session->{_oidcConnectedRP},
}
......
......@@ -7,7 +7,7 @@
<tbody>
<TMPL_LOOP NAME="partners">
<tr partner="<TMPL_VAR NAME="name">">
<td><TMPL_VAR NAME="name">
<td><TMPL_VAR NAME="displayName">
<a partner="<TMPL_VAR NAME="name">" class="oidcConsent link text-danger glyphicon glyphicon-minus-sign"></a>
</td>
</tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment