« blib/lib/Lemonldap/NG/Portal/Auth/GPG.pm
↑ Summary
blib/lib/Lemonldap/NG/Portal/Plugins/Impersonation.pm »
| 1 | package Lemonldap::NG::Portal::Auth::CAS; | ||||||||||||||||||||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||||||||||||||||||||
| 3 | 16 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||
| 4 | 16 | ▶ | use Mouse; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||
| 5 | 16 | ▶ | use URI::Escape; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||
| 6 | 16 | ▶ | use Lemonldap::NG::Common::FormEncode; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||
| 7 | 16 | ▶ | use Lemonldap::NG::Portal::Main::Constants qw( | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||
| 8 | PE_OK | ||||||||||||||||||||||||||||||||||||||||||||||
| 9 | PE_ERROR | ||||||||||||||||||||||||||||||||||||||||||||||
| 10 | PE_REDIRECT | ||||||||||||||||||||||||||||||||||||||||||||||
| 11 | PE_IDPCHOICE | ||||||||||||||||||||||||||||||||||||||||||||||
| 12 | PE_SENDRESPONSE | ||||||||||||||||||||||||||||||||||||||||||||||
| 13 | 16 | ); | |||||||||||||||||||||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||||||||||||||||||||
| 15 | 16 | our $VERSION = '2.23.0'; | |||||||||||||||||||||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||||||||||||||||||||
| 17 | 16 | extends qw( | |||||||||||||||||||||||||||||||||||||||||||||
| 18 | Lemonldap::NG::Portal::Main::Auth | ||||||||||||||||||||||||||||||||||||||||||||||
| 19 | Lemonldap::NG::Portal::Lib::CAS | ||||||||||||||||||||||||||||||||||||||||||||||
| 20 | ); | ||||||||||||||||||||||||||||||||||||||||||||||
| 21 | |||||||||||||||||||||||||||||||||||||||||||||||
| 22 | # PROPERTIES | ||||||||||||||||||||||||||||||||||||||||||||||
| 23 | |||||||||||||||||||||||||||||||||||||||||||||||
| 24 | 16 | has srvNumber => ( is => 'rw', default => 0 ); | |||||||||||||||||||||||||||||||||||||||||||||
| 25 | 16 | ▶ | has srvList => ( is => 'rw', default => sub { [] } ); | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||
| 26 | 16 | ▶ | use constant sessionKind => 'CAS'; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||
| 27 | 16 | ▶ | use constant afterData => 'authFinish'; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||
| 28 | |||||||||||||||||||||||||||||||||||||||||||||||
| 29 | # INITIALIZATION | ||||||||||||||||||||||||||||||||||||||||||||||
| 30 | |||||||||||||||||||||||||||||||||||||||||||||||
| 31 | 15 | ▶ | sub init { | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
init: called CC=11 SCAR=24.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||
| 32 | 15 | my ($self) = @_; | |||||||||||||||||||||||||||||||||||||||||||||
| 33 | |||||||||||||||||||||||||||||||||||||||||||||||
| 34 | 15 | ▶ | return 0 unless ( $self->loadSrv ); | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 35 | 15 | my @tab = ( keys %{ $self->casSrvList } ); | |||||||||||||||||||||||||||||||||||||||||||||
| 36 | 15 | ▶ | unless (@tab) { | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 37 | 0 | $self->logger->error("No CAS server configured"); | |||||||||||||||||||||||||||||||||||||||||||||
| 38 | 0 | return 0; | |||||||||||||||||||||||||||||||||||||||||||||
| 39 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 40 | 15 | $self->srvNumber( scalar @tab ); | |||||||||||||||||||||||||||||||||||||||||||||
| 41 | 15 | my @list; | |||||||||||||||||||||||||||||||||||||||||||||
| 42 | |||||||||||||||||||||||||||||||||||||||||||||||
| 43 | 15 | foreach (@tab) { | |||||||||||||||||||||||||||||||||||||||||||||
| 44 | 19 | my $name = $_; | |||||||||||||||||||||||||||||||||||||||||||||
| 45 | $name = | ||||||||||||||||||||||||||||||||||||||||||||||
| 46 | $self->conf->{casSrvMetaDataOptions}->{$_} | ||||||||||||||||||||||||||||||||||||||||||||||
| 47 | ->{casSrvMetaDataOptionsDisplayName} | ||||||||||||||||||||||||||||||||||||||||||||||
| 48 | if $self->conf->{casSrvMetaDataOptions}->{$_} | ||||||||||||||||||||||||||||||||||||||||||||||
| 49 | 19 | ▶ | ->{casSrvMetaDataOptionsDisplayName}; | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 50 | my $icon = $self->conf->{casSrvMetaDataOptions}->{$_} | ||||||||||||||||||||||||||||||||||||||||||||||
| 51 | 19 | ->{casSrvMetaDataOptionsIcon}; | |||||||||||||||||||||||||||||||||||||||||||||
| 52 | my $tooltip = $self->conf->{casSrvMetaDataOptions}->{$_} | ||||||||||||||||||||||||||||||||||||||||||||||
| 53 | 19 | ▶ | ->{casSrvMetaDataOptionsTooltip} || $name; | ||||||||||||||||||||||||||||||||||||||||||||
|
Condition66%2/3
$self->conf->{'casSrvMetaDataOptions'}{$_}{'casSrvMetaDataOptionsTooltip'} || $name
MC/DC0%0/2
$self->conf->{'casSrvMetaDataOptions'}{$_}{'casSrvMetaDataOptionsTooltip'} || $name
$self->conf->{'casSrvMetaDataOptions'}{$_}{'casSrvMetaDataOptionsTooltip'}
$name
Truth table66%2/3
A || B
A= $self->conf->{'casSrvMetaDataOptions'}{$_}{'casSrvMetaDataOptionsTooltip'}B= $name
| |||||||||||||||||||||||||||||||||||||||||||||||
| 54 | my $order = $self->conf->{casSrvMetaDataOptions}->{$_} | ||||||||||||||||||||||||||||||||||||||||||||||
| 55 | 19 | ▶ | ->{casSrvMetaDataOptionsSortNumber} // 0; | ||||||||||||||||||||||||||||||||||||||||||||
|
Condition100%2/2
$self->conf->{"casSrvMetaDataOptions"}{$_}{"casSrvMetaDataOptionsSortNumber"} // 0
MC/DC100%1/1
$self->conf->{"casSrvMetaDataOptions"}{$_}{"casSrvMetaDataOptionsSortNumber"} // 0
$self->conf->{"casSrvMetaDataOptions"}{$_}{"casSrvMetaDataOptionsSortNumber"}
Truth table100%2/2
A
A= $self->conf->{"casSrvMetaDataOptions"}{$_}{"casSrvMetaDataOptionsSortNumber"}
| |||||||||||||||||||||||||||||||||||||||||||||||
| 56 | 19 | my $img_src; | |||||||||||||||||||||||||||||||||||||||||||||
| 57 | |||||||||||||||||||||||||||||||||||||||||||||||
| 58 | 19 | ▶ | if ($icon) { | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 59 | 1 | ▶ | $img_src = | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 60 | ( $icon =~ m#^https?://# ) | ||||||||||||||||||||||||||||||||||||||||||||||
| 61 | ? $icon | ||||||||||||||||||||||||||||||||||||||||||||||
| 62 | : $self->p->staticPrefix . "/common/" . $icon; | ||||||||||||||||||||||||||||||||||||||||||||||
| 63 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 64 | 19 | push @list, | |||||||||||||||||||||||||||||||||||||||||||||
| 65 | { | ||||||||||||||||||||||||||||||||||||||||||||||
| 66 | val => $_, | ||||||||||||||||||||||||||||||||||||||||||||||
| 67 | name => $name, | ||||||||||||||||||||||||||||||||||||||||||||||
| 68 | title => $tooltip, | ||||||||||||||||||||||||||||||||||||||||||||||
| 69 | icon => $img_src, | ||||||||||||||||||||||||||||||||||||||||||||||
| 70 | order => $order | ||||||||||||||||||||||||||||||||||||||||||||||
| 71 | }; | ||||||||||||||||||||||||||||||||||||||||||||||
| 72 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 73 | @list = | ||||||||||||||||||||||||||||||||||||||||||||||
| 74 | sort { | ||||||||||||||||||||||||||||||||||||||||||||||
| 75 | 15 | $a->{order} <=> $b->{order} | |||||||||||||||||||||||||||||||||||||||||||||
| 76 | or $a->{name} cmp $b->{name} | ||||||||||||||||||||||||||||||||||||||||||||||
| 77 | or $a->{val} cmp $b->{val} | ||||||||||||||||||||||||||||||||||||||||||||||
| 78 | 5 | ▶ | } @list; | ||||||||||||||||||||||||||||||||||||||||||||
|
Condition50%3/6
$Lemonldap::NG::Portal::Auth::CAS::a->{'order'} <=> $Lemonldap::NG::Portal::Auth::CAS::b->{'order'} || $Lemonldap::NG::Portal::Auth::CAS::a->{'name'} cmp $Lemonldap::NG::Portal::Auth::CAS::b->{'name'} || $Lemonldap::NG::Portal::Auth::CAS::a->{'val'} cmp $Lemonldap::NG::Portal::Auth::CAS::b->{'val'}
$Lemonldap::NG::Portal::Auth::CAS::a->{"order"} <=> $Lemonldap::NG::Portal::Auth::CAS::b->{"order"} or $Lemonldap::NG::Portal::Auth::CAS::a->{"name"} cmp $Lemonldap::NG::Portal::Auth::CAS::b->{"name"}
MC/DC0%0/3
$Lemonldap::NG::Portal::Auth::CAS::a->{'order'} <=> $Lemonldap::NG::Portal::Auth::CAS::b->{'order'} || $Lemonldap::NG::Portal::Auth::CAS::a->{'name'} cmp $Lemonldap::NG::Portal::Auth::CAS::b->{'name'} || $Lemonldap::NG::Portal::Auth::CAS::a->{'val'} cmp $Lemonldap::NG::Portal::Auth::CAS::b->{'val'}
$Lemonldap::NG::Portal::Auth::CAS::a->{"order"} <=> $Lemonldap::NG::Portal::Auth::CAS::b->{"order"}
$Lemonldap::NG::Portal::Auth::CAS::a->{"name"} cmp $Lemonldap::NG::Portal::Auth::CAS::b->{"name"}
$Lemonldap::NG::Portal::Auth::CAS::a->{'val'} cmp $Lemonldap::NG::Portal::Auth::CAS::b->{'val'}
Truth table50%2/4
A or B || C
A= $Lemonldap::NG::Portal::Auth::CAS::a->{"order"} <=> $Lemonldap::NG::Portal::Auth::CAS::b->{"order"}B= $Lemonldap::NG::Portal::Auth::CAS::a->{"name"} cmp $Lemonldap::NG::Portal::Auth::CAS::b->{"name"}C= $Lemonldap::NG::Portal::Auth::CAS::a->{'val'} cmp $Lemonldap::NG::Portal::Auth::CAS::b->{'val'}
| |||||||||||||||||||||||||||||||||||||||||||||||
| 79 | 15 | $self->srvList( \@list ); | |||||||||||||||||||||||||||||||||||||||||||||
| 80 | |||||||||||||||||||||||||||||||||||||||||||||||
| 81 | 15 | return 1; | |||||||||||||||||||||||||||||||||||||||||||||
| 82 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 83 | |||||||||||||||||||||||||||||||||||||||||||||||
| 84 | # RUNNING METHODS | ||||||||||||||||||||||||||||||||||||||||||||||
| 85 | |||||||||||||||||||||||||||||||||||||||||||||||
| 86 | 49 | ▶ | sub extractFormInfo { | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
extractFormInfo: called CC=31 SCAR=54.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||
| 87 | 49 | my ( $self, $req ) = @_; | |||||||||||||||||||||||||||||||||||||||||||||
| 88 | |||||||||||||||||||||||||||||||||||||||||||||||
| 89 | # Local URL | ||||||||||||||||||||||||||||||||||||||||||||||
| 90 | 49 | my $local_url = $self->p->fullUrl($req); | |||||||||||||||||||||||||||||||||||||||||||||
| 91 | |||||||||||||||||||||||||||||||||||||||||||||||
| 92 | # Remove cancel parameter | ||||||||||||||||||||||||||||||||||||||||||||||
| 93 | 49 | $local_url =~ s/cancel=1&?//; | |||||||||||||||||||||||||||||||||||||||||||||
| 94 | |||||||||||||||||||||||||||||||||||||||||||||||
| 95 | # Catch proxy callback | ||||||||||||||||||||||||||||||||||||||||||||||
| 96 | 49 | ▶ | if ( $req->param('casProxy') ) { | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 97 | 0 | $self->logger->debug("CAS: Proxy callback detected"); | |||||||||||||||||||||||||||||||||||||||||||||
| 98 | |||||||||||||||||||||||||||||||||||||||||||||||
| 99 | 0 | my $pgtIou = $req->param('pgtIou'); | |||||||||||||||||||||||||||||||||||||||||||||
| 100 | 0 | my $pgtId = $req->param('pgtId'); | |||||||||||||||||||||||||||||||||||||||||||||
| 101 | |||||||||||||||||||||||||||||||||||||||||||||||
| 102 | 0 | ▶ | if ( $pgtIou and $pgtId ) { | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$pgtIou and $pgtId
MC/DC0%0/2
$pgtIou and $pgtId
$pgtIou
$pgtId
Truth table0%0/3
A and B
A= $pgtIouB= $pgtId
| |||||||||||||||||||||||||||||||||||||||||||||||
| 103 | |||||||||||||||||||||||||||||||||||||||||||||||
| 104 | # Store pgtId and pgtIou | ||||||||||||||||||||||||||||||||||||||||||||||
| 105 | 0 | my $pgtSessionId = $self->storePGT( $pgtIou, $pgtId ); | |||||||||||||||||||||||||||||||||||||||||||||
| 106 | 0 | ▶ | unless ($pgtSessionId) { | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 107 | 0 | $self->userLogger->error( | |||||||||||||||||||||||||||||||||||||||||||||
| 108 | "CAS: Unable to store pgtIou $pgtIou and pgtId $pgtId"); | ||||||||||||||||||||||||||||||||||||||||||||||
| 109 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 110 | else { | ||||||||||||||||||||||||||||||||||||||||||||||
| 111 | 0 | $self->logger->debug( | |||||||||||||||||||||||||||||||||||||||||||||
| 112 | "CAS: Store pgtIou $pgtIou and pgtId $pgtId in session $pgtSessionId" | ||||||||||||||||||||||||||||||||||||||||||||||
| 113 | ); | ||||||||||||||||||||||||||||||||||||||||||||||
| 114 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 115 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 116 | |||||||||||||||||||||||||||||||||||||||||||||||
| 117 | # Exit | ||||||||||||||||||||||||||||||||||||||||||||||
| 118 | 0 | $req->response( $self->p->sendBinaryResponse( $req, "" ) ); | |||||||||||||||||||||||||||||||||||||||||||||
| 119 | 0 | return PE_SENDRESPONSE; | |||||||||||||||||||||||||||||||||||||||||||||
| 120 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 121 | |||||||||||||||||||||||||||||||||||||||||||||||
| 122 | 49 | ▶ | if ($req->param('logoutRequest')) { | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 123 | 1 | my $xml = eval { $self->parser->parse_string( $req->param('logoutRequest') ) }; | |||||||||||||||||||||||||||||||||||||||||||||
| 124 | 1 | ▶ | if ($@) { | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 125 | 0 | $self->logger->error("Could not process logoutRequest: $@"); | |||||||||||||||||||||||||||||||||||||||||||||
| 126 | } else { | ||||||||||||||||||||||||||||||||||||||||||||||
| 127 | 1 | my $xpc = XML::LibXML::XPathContext->new($xml); | |||||||||||||||||||||||||||||||||||||||||||||
| 128 | 1 | $xpc->registerNs( 'samlp', 'urn:oasis:names:tc:SAML:2.0:protocol' ); | |||||||||||||||||||||||||||||||||||||||||||||
| 129 | 1 | ▶ | if (my $ticket = $xpc->findnodes('/samlp:LogoutRequest/samlp:SessionIndex')->string_value) { | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 130 | 0 | $self->_handleBackChannelLogout($req, $ticket); | |||||||||||||||||||||||||||||||||||||||||||||
| 131 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 132 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 133 | 1 | $req->response( [ 200, [ 'Content-Length' => 0 ], [] ] ); | |||||||||||||||||||||||||||||||||||||||||||||
| 134 | 1 | return PE_SENDRESPONSE; | |||||||||||||||||||||||||||||||||||||||||||||
| 135 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 136 | |||||||||||||||||||||||||||||||||||||||||||||||
| 137 | 48 | my $srv; | |||||||||||||||||||||||||||||||||||||||||||||
| 138 | |||||||||||||||||||||||||||||||||||||||||||||||
| 139 | # Check Service Ticket | ||||||||||||||||||||||||||||||||||||||||||||||
| 140 | 48 | my $ticket = $req->param('ticket'); | |||||||||||||||||||||||||||||||||||||||||||||
| 141 | |||||||||||||||||||||||||||||||||||||||||||||||
| 142 | # Check if CAS server is chosen | ||||||||||||||||||||||||||||||||||||||||||||||
| 143 | 48 | ▶ | unless ( ( $ticket and $srv = $req->cookies->{llngcasserver} ) | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%2/6
$ticket and $srv = $req->cookies->{"llngcasserver"} or $srv = $req->param("idp")
$ticket and $srv = $req->cookies->{"llngcasserver"}
MC/DC0%0/3
$ticket and $srv = $req->cookies->{"llngcasserver"} or $srv = $req->param("idp")
$ticket
$srv = $req->cookies->{"llngcasserver"}
$srv = $req->param("idp")
Truth table20%1/5
A and B or C
A= $ticketB= $srv = $req->cookies->{"llngcasserver"}C= $srv = $req->param("idp")
| |||||||||||||||||||||||||||||||||||||||||||||||
| 144 | or $srv = $req->param('idp') ) | ||||||||||||||||||||||||||||||||||||||||||||||
| 145 | { | ||||||||||||||||||||||||||||||||||||||||||||||
| 146 | 48 | $self->logger->debug("Redirecting user to CAS server list"); | |||||||||||||||||||||||||||||||||||||||||||||
| 147 | |||||||||||||||||||||||||||||||||||||||||||||||
| 148 | # Auto select provider if there is only one | ||||||||||||||||||||||||||||||||||||||||||||||
| 149 | 48 | ▶ | if ( $self->srvNumber == 1 ) { | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 150 | 46 | ($srv) = keys %{ $self->casSrvList }; | |||||||||||||||||||||||||||||||||||||||||||||
| 151 | 46 | $self->logger->debug("Selecting the only defined CAS server: $srv"); | |||||||||||||||||||||||||||||||||||||||||||||
| 152 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 153 | |||||||||||||||||||||||||||||||||||||||||||||||
| 154 | else { | ||||||||||||||||||||||||||||||||||||||||||||||
| 155 | |||||||||||||||||||||||||||||||||||||||||||||||
| 156 | # Try to use server resolution rules | ||||||||||||||||||||||||||||||||||||||||||||||
| 157 | 2 | foreach ( keys %{ $self->srvRules } ) { | |||||||||||||||||||||||||||||||||||||||||||||
| 158 | 0 | ▶ | my $cond = $self->srvRules->{$_} or next; | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 159 | 0 | ▶ | if ( $cond->( $req, $req->sessionInfo ) ) { | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 160 | 0 | $self->logger->debug( | |||||||||||||||||||||||||||||||||||||||||||||
| 161 | "CAS Server $_ selected from resolution rule"); | ||||||||||||||||||||||||||||||||||||||||||||||
| 162 | 0 | $srv = $_; | |||||||||||||||||||||||||||||||||||||||||||||
| 163 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||||||
| 164 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 165 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 166 | |||||||||||||||||||||||||||||||||||||||||||||||
| 167 | 2 | ▶ | unless ($srv) { | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 168 | |||||||||||||||||||||||||||||||||||||||||||||||
| 169 | # Server list | ||||||||||||||||||||||||||||||||||||||||||||||
| 170 | 2 | $req->data->{list} = $self->srvList; | |||||||||||||||||||||||||||||||||||||||||||||
| 171 | 2 | $req->data->{login} = 1; | |||||||||||||||||||||||||||||||||||||||||||||
| 172 | 2 | return PE_IDPCHOICE; | |||||||||||||||||||||||||||||||||||||||||||||
| 173 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 174 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 175 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 176 | |||||||||||||||||||||||||||||||||||||||||||||||
| 177 | 46 | my $srvConf = $self->conf->{casSrvMetaDataOptions}->{$srv}; | |||||||||||||||||||||||||||||||||||||||||||||
| 178 | 46 | ▶ | unless ($srvConf) { | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 179 | 0 | $self->userLogger->error("CAS server $srv not configured"); | |||||||||||||||||||||||||||||||||||||||||||||
| 180 | 0 | return PE_ERROR; | |||||||||||||||||||||||||||||||||||||||||||||
| 181 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 182 | |||||||||||||||||||||||||||||||||||||||||||||||
| 183 | # Provider is choosen | ||||||||||||||||||||||||||||||||||||||||||||||
| 184 | 46 | $self->logger->debug("CAS server $srv choosen"); | |||||||||||||||||||||||||||||||||||||||||||||
| 185 | |||||||||||||||||||||||||||||||||||||||||||||||
| 186 | 46 | $req->data->{_casSrvCurrent} = $srv; | |||||||||||||||||||||||||||||||||||||||||||||
| 187 | |||||||||||||||||||||||||||||||||||||||||||||||
| 188 | # Unless a ticket has been found, we redirect the user | ||||||||||||||||||||||||||||||||||||||||||||||
| 189 | 46 | ▶ | unless ($ticket) { | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 190 | |||||||||||||||||||||||||||||||||||||||||||||||
| 191 | # Add request state parameters | ||||||||||||||||||||||||||||||||||||||||||||||
| 192 | 46 | ▶ | if ( $req->data->{_url} ) { | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 193 | $local_url .= ( $local_url =~ /\?/ ? '&' : '?' ) | ||||||||||||||||||||||||||||||||||||||||||||||
| 194 | 0 | ▶ | . build_urlencoded( url => $req->data->{_url} ); | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 195 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 196 | |||||||||||||||||||||||||||||||||||||||||||||||
| 197 | # Forward hidden fields | ||||||||||||||||||||||||||||||||||||||||||||||
| 198 | 46 | ▶ | if ( $req->{portalHiddenFormValues} | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$req->{"portalHiddenFormValues"} and %{$req->{"portalHiddenFormValues"};}
MC/DC0%0/2
$req->{"portalHiddenFormValues"} and %{$req->{"portalHiddenFormValues"};}
$req->{"portalHiddenFormValues"}
%{$req->{"portalHiddenFormValues"};}
Truth table33%1/3
A and B
A= $req->{"portalHiddenFormValues"}B= %{$req->{"portalHiddenFormValues"};}
| |||||||||||||||||||||||||||||||||||||||||||||||
| 199 | 0 | and %{ $req->{portalHiddenFormValues} } ) | |||||||||||||||||||||||||||||||||||||||||||||
| 200 | { | ||||||||||||||||||||||||||||||||||||||||||||||
| 201 | |||||||||||||||||||||||||||||||||||||||||||||||
| 202 | 0 | $self->logger->debug("Add hidden values to CAS redirect URL\n"); | |||||||||||||||||||||||||||||||||||||||||||||
| 203 | $local_url .= ( $local_url =~ /\?/ ? '&' : '?' ) | ||||||||||||||||||||||||||||||||||||||||||||||
| 204 | 0 | ▶ | . build_urlencoded( %{ $req->{portalHiddenFormValues} } ); | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 205 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 206 | |||||||||||||||||||||||||||||||||||||||||||||||
| 207 | # Build login URL | ||||||||||||||||||||||||||||||||||||||||||||||
| 208 | 46 | my $login_url = $self->getServerLoginURL( $local_url, $srvConf ); | |||||||||||||||||||||||||||||||||||||||||||||
| 209 | 46 | ▶ | $login_url .= '&renew=true' if $srvConf->{casSrvMetaDataOptionsRenew}; | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 210 | $login_url .= '&gateway=true' | ||||||||||||||||||||||||||||||||||||||||||||||
| 211 | 46 | ▶ | if $srvConf->{casSrvMetaDataOptionsGateway}; | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 212 | |||||||||||||||||||||||||||||||||||||||||||||||
| 213 | 46 | $self->logger->debug("CAS: Redirect user to $login_url"); | |||||||||||||||||||||||||||||||||||||||||||||
| 214 | 46 | $req->{urldc} = $login_url; | |||||||||||||||||||||||||||||||||||||||||||||
| 215 | 46 | $req->steps( [] ); | |||||||||||||||||||||||||||||||||||||||||||||
| 216 | $req->addCookie( | ||||||||||||||||||||||||||||||||||||||||||||||
| 217 | $self->p->cookie( | ||||||||||||||||||||||||||||||||||||||||||||||
| 218 | name => 'llngcasserver', | ||||||||||||||||||||||||||||||||||||||||||||||
| 219 | value => $srv, | ||||||||||||||||||||||||||||||||||||||||||||||
| 220 | secure => $self->conf->{securedCookie}, | ||||||||||||||||||||||||||||||||||||||||||||||
| 221 | ) | ||||||||||||||||||||||||||||||||||||||||||||||
| 222 | 46 | ); | |||||||||||||||||||||||||||||||||||||||||||||
| 223 | 46 | return PE_REDIRECT; | |||||||||||||||||||||||||||||||||||||||||||||
| 224 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 225 | |||||||||||||||||||||||||||||||||||||||||||||||
| 226 | 0 | $self->logger->debug("CAS: Service Ticket received: $ticket"); | |||||||||||||||||||||||||||||||||||||||||||||
| 227 | |||||||||||||||||||||||||||||||||||||||||||||||
| 228 | # save it for authFinish | ||||||||||||||||||||||||||||||||||||||||||||||
| 229 | 0 | $req->data->{ticket} = $ticket; | |||||||||||||||||||||||||||||||||||||||||||||
| 230 | |||||||||||||||||||||||||||||||||||||||||||||||
| 231 | my $proxied = | ||||||||||||||||||||||||||||||||||||||||||||||
| 232 | 0 | ▶ | $self->conf->{casSrvMetaDataOptionsProxiedServices}->{$srv} || {}; | ||||||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/2
$self->conf->{'casSrvMetaDataOptionsProxiedServices'}{$srv} || {}
MC/DC0%0/1
$self->conf->{'casSrvMetaDataOptionsProxiedServices'}{$srv} || {}
$self->conf->{'casSrvMetaDataOptionsProxiedServices'}{$srv}
Truth table0%0/2
A
A= $self->conf->{'casSrvMetaDataOptionsProxiedServices'}{$srv}
| |||||||||||||||||||||||||||||||||||||||||||||||
| 233 | |||||||||||||||||||||||||||||||||||||||||||||||
| 234 | # Ticket found, try to validate it | ||||||||||||||||||||||||||||||||||||||||||||||
| 235 | 0 | $local_url =~ s/ticket=[^&]+//; | |||||||||||||||||||||||||||||||||||||||||||||
| 236 | 0 | $local_url =~ s/\?$//; | |||||||||||||||||||||||||||||||||||||||||||||
| 237 | 0 | $local_url =~ s/\&$//; | |||||||||||||||||||||||||||||||||||||||||||||
| 238 | 0 | ( $req->{user}, $req->data->{casAttrs} ) = | |||||||||||||||||||||||||||||||||||||||||||||
| 239 | $self->validateST( $req, $local_url, $ticket, $srvConf, $proxied ); | ||||||||||||||||||||||||||||||||||||||||||||||
| 240 | 0 | ▶ | unless ( $req->{user} ) { | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 241 | 0 | $self->userLogger->error("CAS: Unable to validate ST $ticket"); | |||||||||||||||||||||||||||||||||||||||||||||
| 242 | 0 | return PE_ERROR; | |||||||||||||||||||||||||||||||||||||||||||||
| 243 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 244 | else { | ||||||||||||||||||||||||||||||||||||||||||||||
| 245 | 0 | $self->logger->debug("CAS: User $req->{user} found"); | |||||||||||||||||||||||||||||||||||||||||||||
| 246 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 247 | |||||||||||||||||||||||||||||||||||||||||||||||
| 248 | # Request proxy tickets for proxied services | ||||||||||||||||||||||||||||||||||||||||||||||
| 249 | 0 | ▶ | if (%$proxied) { | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 250 | |||||||||||||||||||||||||||||||||||||||||||||||
| 251 | # Check we received a PGT | ||||||||||||||||||||||||||||||||||||||||||||||
| 252 | 0 | my $pgtId = $req->data->{pgtId}; | |||||||||||||||||||||||||||||||||||||||||||||
| 253 | |||||||||||||||||||||||||||||||||||||||||||||||
| 254 | 0 | ▶ | unless ($pgtId) { | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 255 | 0 | $self->logger->error( | |||||||||||||||||||||||||||||||||||||||||||||
| 256 | "CAS: Proxy mode activated, but no PGT received"); | ||||||||||||||||||||||||||||||||||||||||||||||
| 257 | 0 | return PE_ERROR; | |||||||||||||||||||||||||||||||||||||||||||||
| 258 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 259 | |||||||||||||||||||||||||||||||||||||||||||||||
| 260 | # Get a proxy ticket for each proxied service | ||||||||||||||||||||||||||||||||||||||||||||||
| 261 | 0 | foreach ( keys %$proxied ) { | |||||||||||||||||||||||||||||||||||||||||||||
| 262 | 0 | my $service = $proxied->{$_}; | |||||||||||||||||||||||||||||||||||||||||||||
| 263 | 0 | my $pt = $self->retrievePT( $service, $pgtId, $srvConf ); | |||||||||||||||||||||||||||||||||||||||||||||
| 264 | |||||||||||||||||||||||||||||||||||||||||||||||
| 265 | 0 | ▶ | unless ($pt) { | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 266 | 0 | $self->logger->error( | |||||||||||||||||||||||||||||||||||||||||||||
| 267 | "CAS: No proxy ticket received for service $service"); | ||||||||||||||||||||||||||||||||||||||||||||||
| 268 | 0 | return PE_ERROR; | |||||||||||||||||||||||||||||||||||||||||||||
| 269 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 270 | |||||||||||||||||||||||||||||||||||||||||||||||
| 271 | $self->logger->debug( | ||||||||||||||||||||||||||||||||||||||||||||||
| 272 | 0 | "CAS: Received proxy ticket $pt for service $service"); | |||||||||||||||||||||||||||||||||||||||||||||
| 273 | |||||||||||||||||||||||||||||||||||||||||||||||
| 274 | # Store it in session | ||||||||||||||||||||||||||||||||||||||||||||||
| 275 | 0 | $req->{sessionInfo}->{ '_casPT' . $_ } = $pt; | |||||||||||||||||||||||||||||||||||||||||||||
| 276 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 277 | |||||||||||||||||||||||||||||||||||||||||||||||
| 278 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 279 | |||||||||||||||||||||||||||||||||||||||||||||||
| 280 | 0 | return PE_OK; | |||||||||||||||||||||||||||||||||||||||||||||
| 281 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 282 | |||||||||||||||||||||||||||||||||||||||||||||||
| 283 | 0 | ▶ | sub _handleBackChannelLogout { | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_handleBackChannelLogout: not called CC=3 SCAR=24.8
| |||||||||||||||||||||||||||||||||||||||||||||||
| 284 | 0 | my ($self, $req, $ticket) = @_; | |||||||||||||||||||||||||||||||||||||||||||||
| 285 | |||||||||||||||||||||||||||||||||||||||||||||||
| 286 | 0 | $self->logger->debug("CAS: Received BackChannel logoutRequest for ticket $ticket"); | |||||||||||||||||||||||||||||||||||||||||||||
| 287 | |||||||||||||||||||||||||||||||||||||||||||||||
| 288 | 0 | ▶ | if (my $id = $self->getSSOSessionIdByTicket($ticket)) { | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 289 | 0 | my $sessionData = $self->p->HANDLER->retrieveSession( $req, $id ); | |||||||||||||||||||||||||||||||||||||||||||||
| 290 | 0 | ▶ | if ($sessionData) { | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 291 | 0 | $self->logger->debug("Doing backchannel logout on session $id"); | |||||||||||||||||||||||||||||||||||||||||||||
| 292 | 0 | $req->userData( $req->sessionInfo($sessionData) ); | |||||||||||||||||||||||||||||||||||||||||||||
| 293 | $self->p->do( $req, | ||||||||||||||||||||||||||||||||||||||||||||||
| 294 | 0 | [ @{ $self->p->beforeLogout }, 'authLogout', 'deleteSession' ] ); | |||||||||||||||||||||||||||||||||||||||||||||
| 295 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 296 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 297 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 298 | |||||||||||||||||||||||||||||||||||||||||||||||
| 299 | # Saves the link between IDP-side Session ID/NameID and LLNG session | ||||||||||||||||||||||||||||||||||||||||||||||
| 300 | 0 | ▶ | sub authFinish { | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
authFinish: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||
| 301 | 0 | my ( $self, $req ) = @_; | |||||||||||||||||||||||||||||||||||||||||||||
| 302 | |||||||||||||||||||||||||||||||||||||||||||||||
| 303 | # Get saved ticket | ||||||||||||||||||||||||||||||||||||||||||||||
| 304 | 0 | my $ticket = $req->data->{ticket}; | |||||||||||||||||||||||||||||||||||||||||||||
| 305 | |||||||||||||||||||||||||||||||||||||||||||||||
| 306 | # Auth::CAS was not used for this session | ||||||||||||||||||||||||||||||||||||||||||||||
| 307 | 0 | ▶ | return unless ($ticket); | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 308 | |||||||||||||||||||||||||||||||||||||||||||||||
| 309 | # Real session was stored, get id and utime | ||||||||||||||||||||||||||||||||||||||||||||||
| 310 | 0 | my $id = $req->{id}; | |||||||||||||||||||||||||||||||||||||||||||||
| 311 | 0 | my $utime = $req->{sessionInfo}->{_utime}; | |||||||||||||||||||||||||||||||||||||||||||||
| 312 | |||||||||||||||||||||||||||||||||||||||||||||||
| 313 | 0 | $self->logger->debug( "Store ticket " | |||||||||||||||||||||||||||||||||||||||||||||
| 314 | . $ticket | ||||||||||||||||||||||||||||||||||||||||||||||
| 315 | . " for session $id" ); | ||||||||||||||||||||||||||||||||||||||||||||||
| 316 | |||||||||||||||||||||||||||||||||||||||||||||||
| 317 | 0 | my $infos; | |||||||||||||||||||||||||||||||||||||||||||||
| 318 | 0 | $infos->{type} = 'casTicket'; # Session type | |||||||||||||||||||||||||||||||||||||||||||||
| 319 | 0 | $infos->{_utime} = $utime; # Creation time | |||||||||||||||||||||||||||||||||||||||||||||
| 320 | 0 | $infos->{_cas_id} = $id; # SSO session id | |||||||||||||||||||||||||||||||||||||||||||||
| 321 | 0 | $infos->{auth_cas_ticket} = $ticket; # CAS ticket | |||||||||||||||||||||||||||||||||||||||||||||
| 322 | |||||||||||||||||||||||||||||||||||||||||||||||
| 323 | # Save CAS session | ||||||||||||||||||||||||||||||||||||||||||||||
| 324 | 0 | my $CASSessionInfo = $self->getCasSession( undef, $infos ); | |||||||||||||||||||||||||||||||||||||||||||||
| 325 | |||||||||||||||||||||||||||||||||||||||||||||||
| 326 | 0 | ▶ | return PE_ERROR unless $CASSessionInfo; | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 327 | |||||||||||||||||||||||||||||||||||||||||||||||
| 328 | 0 | my $session_id = $CASSessionInfo->id; | |||||||||||||||||||||||||||||||||||||||||||||
| 329 | |||||||||||||||||||||||||||||||||||||||||||||||
| 330 | 0 | $self->logger->debug("Link session $id to CAS session $session_id"); | |||||||||||||||||||||||||||||||||||||||||||||
| 331 | |||||||||||||||||||||||||||||||||||||||||||||||
| 332 | 0 | return PE_OK; | |||||||||||||||||||||||||||||||||||||||||||||
| 333 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 334 | |||||||||||||||||||||||||||||||||||||||||||||||
| 335 | 0 | ▶ | sub authenticate { | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
authenticate: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||
| 336 | 0 | return PE_OK; | |||||||||||||||||||||||||||||||||||||||||||||
| 337 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 338 | |||||||||||||||||||||||||||||||||||||||||||||||
| 339 | # Set authenticationLevel. | ||||||||||||||||||||||||||||||||||||||||||||||
| 340 | 0 | ▶ | sub setAuthSessionInfo { | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
setAuthSessionInfo: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||
| 341 | 0 | my ( $self, $req ) = @_; | |||||||||||||||||||||||||||||||||||||||||||||
| 342 | 0 | $req->{sessionInfo}->{authenticationLevel} = $self->conf->{casAuthnLevel}; | |||||||||||||||||||||||||||||||||||||||||||||
| 343 | 0 | $req->{sessionInfo}->{_casSrv} = $req->data->{_casSrvCurrent}; | |||||||||||||||||||||||||||||||||||||||||||||
| 344 | 0 | return PE_OK; | |||||||||||||||||||||||||||||||||||||||||||||
| 345 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 346 | |||||||||||||||||||||||||||||||||||||||||||||||
| 347 | 0 | ▶ | sub authLogout { | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
authLogout: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||
| 348 | 0 | my ( $self, $req ) = @_; | |||||||||||||||||||||||||||||||||||||||||||||
| 349 | |||||||||||||||||||||||||||||||||||||||||||||||
| 350 | # Real session was previously deleted, | ||||||||||||||||||||||||||||||||||||||||||||||
| 351 | # remove corresponding CAS sessions | ||||||||||||||||||||||||||||||||||||||||||||||
| 352 | 0 | my $session_id = $req->sessionInfo->{_session_id}; | |||||||||||||||||||||||||||||||||||||||||||||
| 353 | 0 | $self->deleteCasSecondarySessions($session_id); | |||||||||||||||||||||||||||||||||||||||||||||
| 354 | |||||||||||||||||||||||||||||||||||||||||||||||
| 355 | # Build CAS logout URL | ||||||||||||||||||||||||||||||||||||||||||||||
| 356 | my $logout_url = $self->getServerLogoutURL( $self->p->fullUrl($req), | ||||||||||||||||||||||||||||||||||||||||||||||
| 357 | $self->conf->{casSrvMetaDataOptions}->{ $req->userData->{_casSrv} } | ||||||||||||||||||||||||||||||||||||||||||||||
| 358 | 0 | ->{casSrvMetaDataOptionsUrl} ); | |||||||||||||||||||||||||||||||||||||||||||||
| 359 | |||||||||||||||||||||||||||||||||||||||||||||||
| 360 | 0 | $self->logger->debug("Build CAS logout URL: $logout_url"); | |||||||||||||||||||||||||||||||||||||||||||||
| 361 | |||||||||||||||||||||||||||||||||||||||||||||||
| 362 | # Register CAS logout URL in logoutServices | ||||||||||||||||||||||||||||||||||||||||||||||
| 363 | 0 | $req->data->{logoutServices}->{CASserver} = $logout_url; | |||||||||||||||||||||||||||||||||||||||||||||
| 364 | |||||||||||||||||||||||||||||||||||||||||||||||
| 365 | 0 | return PE_OK; | |||||||||||||||||||||||||||||||||||||||||||||
| 366 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 367 | |||||||||||||||||||||||||||||||||||||||||||||||
| 368 | 1 | ▶ | sub getDisplayType { | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
getDisplayType: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||
| 369 | 1 | return "logo"; | |||||||||||||||||||||||||||||||||||||||||||||
| 370 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 371 | |||||||||||||||||||||||||||||||||||||||||||||||
| 372 | 16 | 1; | |||||||||||||||||||||||||||||||||||||||||||||