Example #1
0
 /**
  * {@inheritDoc}
  */
 public function getAuthorizationUrl($redirectUrl)
 {
     if (!preg_match('#^https://.*#', $redirectUrl)) {
         $redirectUrl = $this->generator->generate($redirectUrl, array(), true);
     }
     return parent::getAuthorizationUrl($redirectUrl);
 }
Example #2
0
 public function testErrorKeyFromRequest()
 {
     $auth = new Authorization($this->authUrl, $this->appId);
     $this->assertEquals($error = 'error', $auth->getErrorFromRequest(array('error' => $error)));
 }