| 1 | package Lemonldap::NG::Portal::UserDB::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 Lemonldap::NG::Portal::Main::Constants qw( | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | PE_ERROR | ||||||||||||
| 7 | PE_OK | ||||||||||||
| 8 | 16 | ); | |||||||||||
| 9 | |||||||||||||
| 10 | 16 | our $VERSION = '2.19.0'; | |||||||||||
| 11 | |||||||||||||
| 12 | 16 | extends 'Lemonldap::NG::Portal::Main::UserDB'; | |||||||||||
| 13 | |||||||||||||
| 14 | # INITIALIZATION | ||||||||||||
| 15 | |||||||||||||
| 16 | 15 | ▶ | sub init { | ||||||||||
|
Subroutine
init: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 17 | 15 | return 1; | |||||||||||
| 18 | } | ||||||||||||
| 19 | |||||||||||||
| 20 | # RUNNING METHODS | ||||||||||||
| 21 | |||||||||||||
| 22 | 0 | ▶ | sub getUser { | ||||||||||
|
Subroutine
getUser: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 23 | 0 | my ( $self, $req ) = @_; | |||||||||||
| 24 | 0 | return PE_OK; | |||||||||||
| 25 | } | ||||||||||||
| 26 | |||||||||||||
| 27 | 0 | ▶ | sub findUser { | ||||||||||
|
Subroutine
findUser: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 28 | 0 | my ( $self, $req ) = @_; | |||||||||||
| 29 | |||||||||||||
| 30 | # Nothing to do here | ||||||||||||
| 31 | 0 | return PE_OK; | |||||||||||
| 32 | } | ||||||||||||
| 33 | |||||||||||||
| 34 | # Get all required attributes | ||||||||||||
| 35 | 0 | ▶ | sub setSessionInfo { | ||||||||||
|
Subroutine
setSessionInfo: not called CC=4 SCAR=30.0
Pod
undocumented
| |||||||||||||
| 36 | 0 | my ( $self, $req ) = @_; | |||||||||||
| 37 | 0 | my $srv; | |||||||||||
| 38 | 0 | ▶ | unless ( $srv = $req->data->{_casSrvCurrent} ) { | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 39 | 0 | $self->logger->error('UserDB::CAS must be used with Auth::CAS'); | |||||||||||
| 40 | 0 | return PE_ERROR; | |||||||||||
| 41 | } | ||||||||||||
| 42 | my %ev = ( | ||||||||||||
| 43 | 0 | ▶ | %{ $self->conf->{casSrvMetaDataExportedVars}->{$srv} || {} }, | ||||||||||
|
Condition0%0/2
$self->conf->{'casSrvMetaDataExportedVars'}{$srv} || {}
MC/DC0%0/1
$self->conf->{'casSrvMetaDataExportedVars'}{$srv} || {}
$self->conf->{'casSrvMetaDataExportedVars'}{$srv}
Truth table0%0/2
A
A= $self->conf->{'casSrvMetaDataExportedVars'}{$srv}
| |||||||||||||
| 44 | 0 | %{ $self->conf->{exportedVars} } | |||||||||||
| 45 | ); | ||||||||||||
| 46 | 0 | foreach ( keys %ev ) { | |||||||||||
| 47 | 0 | $req->{sessionInfo}->{$_} = $req->data->{casAttrs}->{$_}; | |||||||||||
| 48 | } | ||||||||||||
| 49 | |||||||||||||
| 50 | 0 | return PE_OK; | |||||||||||
| 51 | } | ||||||||||||
| 52 | |||||||||||||
| 53 | 16 | 1; | |||||||||||