Skip to content

Commit

Permalink
Merge pull request jumbojett#37 from rasodu/composer-compatible
Browse files Browse the repository at this point in the history
Composer compatible
  • Loading branch information
jumbojett committed Jul 16, 2015
2 parents 576fb80 + 47fb712 commit ceaa975
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
1 change: 0 additions & 1 deletion OpenIDConnectClient.php5 → OpenIDConnectClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
* It can be downloaded from: http://phpseclib.sourceforge.net/
*/

include('Crypt/RSA.php');
if (!class_exists('Crypt_RSA')) {
user_error('Unable to find phpseclib Crypt/RSA.php. Ensure phpseclib is installed and in include_path');
}
Expand Down
2 changes: 1 addition & 1 deletion client_example.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*
*/

require "OpenIDConnectClient.php5";
require "../../autoload.php";

$oidc = new OpenIDConnectClient('http://myproviderURL.com/',
'ClientIDHere',
Expand Down
13 changes: 13 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "jumbojett/openid-connect-php",
"description": "Bare-bones OpenID Connect client",
"require": {
"php": ">=5.2",
"phpseclib/phpseclib" : "~0.3.10",
"ext-json": "*",
"ext-curl": "*"
},
"autoload": {
"classmap": ["OpenIDConnectClient.php"]
}
}

0 comments on commit ceaa975

Please sign in to comment.