Select Git revision
Forked from
lib / unicaen / auth
Source project has a limited visibility.
-
Laurent Lecluse authored
Utilisation de la config pour la recherche LDAP en cas d'usurpation d'identité. Mise en place d'un EventManager unique et dédié à UnicaenAuth
Laurent Lecluse authoredUtilisation de la config pour la recherche LDAP en cas d'usurpation d'identité. Mise en place d'un EventManager unique et dédié à UnicaenAuth
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
ShibUser.php 3.51 KiB
<?php
namespace UnicaenAuth\Entity\Shibboleth;
use ZfcUser\Entity\UserInterface;
class ShibUser implements UserInterface
{
/**
* @var string
*/
protected $id;
/**
* @var string
*/
protected $username;
/**
* @var string
*/
protected $email;
/**
* @var string
*/
protected $displayName;
/**
* @var string
*/
protected $nom;
/**
* @var string
*/
protected $prenom;
/**
* @var string
*/
protected $civilite;
/**
* @var int
*/
protected $state = 1;
/**
* @return string
*/
public function getEppn()
{
return $this->getUsername();
}
/**
* Set eduPersoPrincipalName (EPPN).
*
* @param string $eppn eduPersoPrincipalName (EPPN), ex: 'gauthierb@unicaen.fr'
*/
public function setEppn($eppn)
{
$this->setUsername($eppn);
}
/**
* Get id.
*
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Set id.
*
* @param string $id supannEmpId ou supannEtuId
*/
public function setId($id)
{
$this->id = $id;
}
/**
* Get username.
*
* @return string
*/
public function getUsername()
{
return $this->username;
}
/**
* Set username.
*
* @param string $username
*/
public function setUsername($username)
{
$this->username = $username;
}
/**
* Get email.
*
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Set email.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* Get displayName.
*
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Set displayName.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getNom()
{
return $this->nom;
}
/**
* @param string $nom
*/
public function setNom($nom)
{
$this->nom = $nom;
}
/**
* @return string
*/
public function getPrenom()
{
return $this->prenom;
}
/**
* @param string $prenom
*/
public function setPrenom($prenom)
{
$this->prenom = $prenom;
}
/**
* @return string|null
*/
public function getCivilite()
{
return $this->civilite;
}
/**
* @param string|null $civilite
*/
public function setCivilite($civilite = null)
{
$this->civilite = $civilite;
}
/**
* Get password.
*
* @return string
*/
public function getPassword()
{
return 'shib';
}
/**
* Set password.
*
* @param string $password
*/
public function setPassword($password)
{
}
/**
* Get state.
*
* @return int
*/
public function getState()
{
return $this->state;
}
/**
* Set state.
*
* @param int $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
*
* @return string
*/
public function __toString()
{
return $this->getDisplayName();
}
}