-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
538 changed files
with
73,444 additions
and
73,311 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,48 @@ | ||
<?php | ||
|
||
namespace OAuth2; | ||
|
||
/** | ||
* Autoloads OAuth2 classes | ||
* | ||
* @author Brent Shaffer <bshafs at gmail dot com> | ||
* @license MIT License | ||
*/ | ||
class Autoloader | ||
{ | ||
private $dir; | ||
|
||
public function __construct($dir = null) | ||
{ | ||
if (is_null($dir)) { | ||
$dir = dirname(__FILE__).'/..'; | ||
} | ||
$this->dir = $dir; | ||
} | ||
/** | ||
* Registers OAuth2\Autoloader as an SPL autoloader. | ||
*/ | ||
public static function register($dir = null) | ||
{ | ||
ini_set('unserialize_callback_func', 'spl_autoload_call'); | ||
spl_autoload_register(array(new self($dir), 'autoload')); | ||
} | ||
|
||
/** | ||
* Handles autoloading of classes. | ||
* | ||
* @param string $class A class name. | ||
* | ||
* @return boolean Returns true if the class has been loaded | ||
*/ | ||
public function autoload($class) | ||
{ | ||
if (0 !== strpos($class, 'OAuth2')) { | ||
return; | ||
} | ||
|
||
if (file_exists($file = $this->dir.'/'.str_replace('\\', '/', $class).'.php')) { | ||
require $file; | ||
} | ||
} | ||
} | ||
<?php | ||
|
||
namespace OAuth2; | ||
|
||
/** | ||
* Autoloads OAuth2 classes | ||
* | ||
* @author Brent Shaffer <bshafs at gmail dot com> | ||
* @license MIT License | ||
*/ | ||
class Autoloader | ||
{ | ||
private $dir; | ||
|
||
public function __construct($dir = null) | ||
{ | ||
if (is_null($dir)) { | ||
$dir = dirname(__FILE__).'/..'; | ||
} | ||
$this->dir = $dir; | ||
} | ||
/** | ||
* Registers OAuth2\Autoloader as an SPL autoloader. | ||
*/ | ||
public static function register($dir = null) | ||
{ | ||
ini_set('unserialize_callback_func', 'spl_autoload_call'); | ||
spl_autoload_register(array(new self($dir), 'autoload')); | ||
} | ||
|
||
/** | ||
* Handles autoloading of classes. | ||
* | ||
* @param string $class A class name. | ||
* | ||
* @return boolean Returns true if the class has been loaded | ||
*/ | ||
public function autoload($class) | ||
{ | ||
if (0 !== strpos($class, 'OAuth2')) { | ||
return; | ||
} | ||
|
||
if (file_exists($file = $this->dir.'/'.str_replace('\\', '/', $class).'.php')) { | ||
require $file; | ||
} | ||
} | ||
} |
30 changes: 15 additions & 15 deletions
30
server/php/Slim/lib/vendors/OAuth2/ClientAssertionType/ClientAssertionTypeInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<?php | ||
|
||
namespace OAuth2\ClientAssertionType; | ||
|
||
use OAuth2\RequestInterface; | ||
use OAuth2\ResponseInterface; | ||
|
||
/** | ||
* Interface for all OAuth2 Client Assertion Types | ||
*/ | ||
interface ClientAssertionTypeInterface | ||
{ | ||
//public function validateRequest(RequestInterface $request, ResponseInterface $response); | ||
//public function getClientId(); | ||
} | ||
<?php | ||
|
||
namespace OAuth2\ClientAssertionType; | ||
|
||
use OAuth2\RequestInterface; | ||
use OAuth2\ResponseInterface; | ||
|
||
/** | ||
* Interface for all OAuth2 Client Assertion Types | ||
*/ | ||
interface ClientAssertionTypeInterface | ||
{ | ||
//public function validateRequest(RequestInterface $request, ResponseInterface $response); | ||
//public function getClientId(); | ||
} |
Oops, something went wrong.