21 public function __construct($a_container,$a_addition_options = array())
26 array($this,
'callProvider'),
33 if(isset(
$_GET[
'oid_check_status']))
35 $_POST[
'username'] =
'dummy';
36 $_POST[
'password'] =
'dummy';
73 $consumer = $this->settings->getConsumer();
82 include_once
'Auth/OpenID/SReg.php';
100 $oid_auth->addExtension($sreg_req);
104 $url = $oid_auth->redirectURL(ILIAS_HTTP_PATH,$this->settings->getReturnLocation());
114 include_once
'./Services/OpenId/classes/class.ilOpenIdSettings.php';
116 $this->settings->initConsumer();
125 if(
$_POST[
'oid_provider'])
127 include_once
'./Services/OpenId/classes/class.ilOpenIdProviders.php';
132 $GLOBALS[
'ilLog']->write(__METHOD__.
': Using '.$username.
' for authentication');
135 catch(UnexpectedValueException $e)
142 if($this->settings->forcedProviderSelection())
parseUsername(&$username, $auth)
Parse username.
static getInstance()
Get singleton instance.
initAuth()
Init auth object Enable logging, set callbacks...
callProvider($username, $status, $auth)
Auth login function Redirects to openid provider.
initSettings()
Init open id settings.
__construct($a_container, $a_addition_options=array())
Contructor.
supportsRedirects()
Returns true, if the current auth mode allows redirection to e.g to loginScreen, public section...
static getInstance()
Get singleton instance.
setSessionName($name='session')
Set name of the session to a customized value.
const AUTH_WRONG_LOGIN
Returned if container is unable to authenticate user/password pair.
static redirect($a_script)
http redirect to other script
static build($required=null, $optional=null, $policy_url=null, $sreg_ns_uri=Auth_OpenID_SREG_NS_URI, $cls='Auth_OpenID_SRegRequest')
Initialize an empty simple registration request.