Skip to content

Commit

Permalink
change vendor name, add copyright notices and prepare to release
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliusPC committed Apr 19, 2021
1 parent 7308aa0 commit 2335d82
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 13 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## master
## [1.0.0]

### Added
* it is now possible to disable upgrading from HTTP to HTTPS for development purposes by calling `setHttpUpgradeInsecureRequests(false)`
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A simple library that allows an application to authenticate a user through the b
This library hopes to encourage OpenID Connect use by making it simple enough for a developer with little knowledge of
the OpenID Connect protocol to setup authentication.

A special thanks goes to Justin Richer and Amanda Anganes for their help and support of the protocol.
This library is a fork of [jumbojett/OpenID-Connect-PHP](https://github.com/jumbojett/OpenID-Connect-PHP), which seems to be discontinued.

# Requirements #
1. PHP 5.4 or greater
Expand All @@ -14,7 +14,7 @@ A special thanks goes to Justin Richer and Amanda Anganes for their help and sup
## Install ##
1. Install library using composer
```
composer require jumbojett/openid-connect-php
composer require juliuspc/openid-connect-php
```
2. Include composer autoloader
```php
Expand All @@ -24,7 +24,7 @@ require __DIR__ . '/vendor/autoload.php';
## Example 1: Basic Client ##

```php
use Jumbojett\OpenIDConnectClient;
use JuliusPC\OpenIDConnectClient;

$oidc = new OpenIDConnectClient('https://id.provider.com',
'ClientIDHere',
Expand All @@ -40,7 +40,7 @@ $name = $oidc->requestUserInfo('given_name');
## Example 2: Dynamic Registration ##

```php
use Jumbojett\OpenIDConnectClient;
use JuliusPC\OpenIDConnectClient;

$oidc = new OpenIDConnectClient("https://id.provider.com");

Expand All @@ -63,7 +63,7 @@ $oidc->setCertPath("/path/to/my.cert");
## Example 4: Request Client Credentials Token ##

```php
use Jumbojett\OpenIDConnectClient;
use JuliusPC\OpenIDConnectClient;

$oidc = new OpenIDConnectClient('https://id.provider.com',
'ClientIDHere',
Expand All @@ -79,7 +79,7 @@ $clientCredentialsToken = $oidc->requestClientCredentialsToken()->access_token;
## Example 5: Request Resource Owners Token (with client auth) ##

```php
use Jumbojett\OpenIDConnectClient;
use JuliusPC\OpenIDConnectClient;

$oidc = new OpenIDConnectClient('https://id.provider.com',
'ClientIDHere',
Expand All @@ -99,7 +99,7 @@ $token = $oidc->requestResourceOwnerToken(TRUE)->access_token;
## Example 6: Basic client for implicit flow e.g. with Azure AD B2C (see http://openid.net/specs/openid-connect-core-1_0.html#ImplicitFlowAuth) ##

```php
use Jumbojett\OpenIDConnectClient;
use JuliusPC\OpenIDConnectClient;

$oidc = new OpenIDConnectClient('https://id.provider.com',
'ClientIDHere',
Expand All @@ -117,7 +117,7 @@ $sub = $oidc->getVerifiedClaims('sub');
## Example 7: Introspection of an access token (see https://tools.ietf.org/html/rfc7662) ##

```php
use Jumbojett\OpenIDConnectClient;
use JuliusPC\OpenIDConnectClient;

$oidc = new OpenIDConnectClient('https://id.provider.com',
'ClientIDHere',
Expand All @@ -132,7 +132,7 @@ if (!$data->active) {
## Example 8: PKCE Client ##

```php
use Jumbojett\OpenIDConnectClient;
use JuliusPC\OpenIDConnectClient;

$oidc = new OpenIDConnectClient('https://id.provider.com',
'ClientIDHere',
Expand Down
7 changes: 6 additions & 1 deletion client_example.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,17 @@
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* ------------------
*
* This file was changed by Julius Cordes, 2021.
* For details see git history.
*
*/

require __DIR__ . '/vendor/autoload.php';

use Jumbojett\OpenIDConnectClient;
use JuliusPC\OpenIDConnectClient;

$oidc = new OpenIDConnectClient(
'http://myproviderURL.com/',
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jumbojett/openid-connect-php",
"description": "Bare-bones OpenID Connect client",
"name": "juliuspc/openid-connect-php",
"description": "OpenID Connect client",
"license": "Apache-2.0",
"require": {
"php": ">=5.4",
Expand Down
5 changes: 5 additions & 0 deletions src/OpenIDConnectClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
* License for the specific language governing permissions and limitations
* under the License.
*
* ------------------
*
* This file was changed by Julius Cordes, 2020-2021.
* For details see git history.
*
*/

namespace JuliusPC;
Expand Down

0 comments on commit 2335d82

Please sign in to comment.