From 791e5a4a2c5b72055c143d194709d1b735e42a87 Mon Sep 17 00:00:00 2001 From: Christian Reber Date: Tue, 14 Nov 2017 23:14:38 +0100 Subject: [PATCH 1/2] Add ruby version to .travis.yml to get builds working again --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 04a737b..315a8c4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,7 @@ +language: ruby +rvm: + - 2.2.2 + before_script: - bundle install From 8cc9f4a7293d5bc4aef3b9834231e5f2f889007b Mon Sep 17 00:00:00 2001 From: Christian Reber Date: Tue, 14 Nov 2017 23:30:00 +0100 Subject: [PATCH 2/2] Add grant type for OpenID Connect to $server --- content/overview/openid-connect.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/content/overview/openid-connect.md b/content/overview/openid-connect.md index 3761dbc..daf6ec4 100644 --- a/content/overview/openid-connect.md +++ b/content/overview/openid-connect.md @@ -76,6 +76,14 @@ CREATE TABLE oauth_public_keys ( > +### 5\. Create OpenID grant type and add it to the server: + +```php +$server->addGrantType ( new OAuth2\OpenID\GrantType\AuthorizationCode ( $storage ) ); +``` + +> + ## Verify OpenID Connect If your server is properly configured for OpenID Connect, when you request an @@ -132,4 +140,4 @@ client id. [use_openid_connect]: https://github.com/bshaffer/oauth2-demo-php/blob/master/src/OAuth2Demo/Server/Server.php#L43 [key storage]: https://github.com/bshaffer/oauth2-demo-php/blob/master/src/OAuth2Demo/Server/Server.php#L83 -[demo site]: http://brentertainment.com/oauth2/ \ No newline at end of file +[demo site]: http://brentertainment.com/oauth2/