Skip to content

Commit

Permalink
Support installation via composer.
Browse files Browse the repository at this point in the history
  • Loading branch information
rasodu committed Jul 8, 2015
1 parent 6345992 commit 47fb712
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
1 change: 0 additions & 1 deletion 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.php";
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 47fb712

Please sign in to comment.