From 4da47684c689d2db396825ee340f7b48b3516521 Mon Sep 17 00:00:00 2001 From: Stanimir Stoyanov Date: Mon, 9 May 2016 12:09:06 +0300 Subject: [PATCH 1/3] Adding missing variable ImplicitGrant's constructor requires \DateInterval object --- auth-server-implicit.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/auth-server-implicit.md b/auth-server-implicit.md index 893fd1e5..4203f47e 100755 --- a/auth-server-implicit.md +++ b/auth-server-implicit.md @@ -60,8 +60,9 @@ $server = new \League\OAuth2\Server\AuthorizationServer( ); // Enable the implicit grant on the server + $server->enableGrantType( - new ImplicitGrant(), + new ImplicitGrant(new \DateInterval('PT1H')), new \DateInterval('PT1H') // access tokens will expire after 1 hour ); {% endhighlight %} @@ -113,4 +114,4 @@ $app->get('/authorize', function (ServerRequestInterface $request, ResponseInter } }); -{% endhighlight %} \ No newline at end of file +{% endhighlight %} From 2d43af6340c01e84c27a134e1c0d816c01e00dee Mon Sep 17 00:00:00 2001 From: Stanimir Stoyanov Date: Mon, 9 May 2016 12:14:12 +0300 Subject: [PATCH 2/3] Removing extra blank line Removing extra blank line --- auth-server-implicit.md | 1 - 1 file changed, 1 deletion(-) diff --git a/auth-server-implicit.md b/auth-server-implicit.md index 4203f47e..40913bb7 100755 --- a/auth-server-implicit.md +++ b/auth-server-implicit.md @@ -60,7 +60,6 @@ $server = new \League\OAuth2\Server\AuthorizationServer( ); // Enable the implicit grant on the server - $server->enableGrantType( new ImplicitGrant(new \DateInterval('PT1H')), new \DateInterval('PT1H') // access tokens will expire after 1 hour From 955bb0c6096f31b47d7a16367b94b0c465d28822 Mon Sep 17 00:00:00 2001 From: Stanimir Stoyanov Date: Mon, 9 May 2016 12:15:59 +0300 Subject: [PATCH 3/3] And another blank line sorry about it