Example #1
0
 /**
  * {@inheritdoc}
  */
 public function authenticateBegin()
 {
     $this->openIdClient->identity = $this->openidIdentifier;
     $this->openIdClient->returnUrl = $this->endpoint;
     $this->openIdClient->required = ['namePerson/prefix', 'namePerson/first', 'namePerson/last', 'namePerson/middle', 'namePerson/suffix', 'namePerson/friendly', 'person/guid', 'birthDate/birthYear', 'birthDate/birthMonth', 'birthDate/birthday', 'gender', 'language/pref', 'contact/phone/default', 'contact/phone/home', 'contact/phone/business', 'contact/phone/cell', 'contact/phone/fax', 'contact/postaladdress/home', 'contact/postaladdressadditional/home', 'contact/city/home', 'contact/state/home', 'contact/country/home', 'contact/postalcode/home', 'contact/postaladdress/business', 'contact/postaladdressadditional/business', 'contact/city/business', 'contact/state/business', 'contact/country/business', 'contact/postalcode/business', 'company/name', 'company/title'];
     HttpClient\Util::redirect($this->openIdClient->authUrl());
 }
Example #2
0
 /**
  * Initiate the authorization protocol
  *
  * 1. Obtaining an Unauthorized Request Token
  * 2. Build Authorization URL for Authorization Request and redirect the user-agent to the
  *    Authorization Server.
  */
 public function authenticateBegin()
 {
     $response = $this->requestAuthToken();
     $this->validateAuthTokenRequest($response);
     $authUrl = $this->getAuthorizeUrl();
     HttpClient\Util::redirect($authUrl);
 }
Example #3
0
 /**
  * Initiate the authorization protocol
  *
  * Include and instantiate LightOpenID
  */
 public function authenticateBegin()
 {
     $this->openIdClient->identity = $this->openidIdentifier;
     $this->openIdClient->returnUrl = $this->endpoint;
     $this->openIdClient->required = ['namePerson/first', 'namePerson/last', 'namePerson/friendly', 'namePerson', 'contact/email', 'birthDate', 'birthDate/birthDay', 'birthDate/birthMonth', 'birthDate/birthYear', 'person/gender', 'pref/language', 'contact/postalCode/home', 'contact/city/home', 'contact/country/home', 'media/image/default'];
     HttpClient\Util::redirect($this->openIdClient->authUrl());
 }
Example #4
0
 /**
  * Initiate the authorization protocol
  *
  * Build Authorization URL for Authorization Request and redirect the user-agent to the
  * Authorization Server.
  */
 public function authenticateBegin()
 {
     $authUrl = $this->getAuthorizeUrl();
     HttpClient\Util::redirect($authUrl);
 }