From 80deeaaec3e46aa50e627ca6b76eae261ebb032c Mon Sep 17 00:00:00 2001 From: Stanimir Stoyanov Date: Sun, 19 Mar 2017 17:38:44 +0200 Subject: [PATCH] Changing the variable name to match the usage --- resource-server-securing-api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resource-server-securing-api.md b/resource-server-securing-api.md index 62736442..2c22ee70 100755 --- a/resource-server-securing-api.md +++ b/resource-server-securing-api.md @@ -17,7 +17,7 @@ Wherever you intialize your objects, initialize a new instance of the resource s $accessTokenRepository = new AccessTokenRepository(); // instance of AccessTokenRepositoryInterface // Path to authorization server's public key -$publicKey = 'file://path/to/public.key'; +$publicKeyPath = 'file://path/to/public.key'; // Setup the authorization server $server = new \League\OAuth2\Server\ResourceServer( @@ -43,4 +43,4 @@ If the access token is valid the following attributes will be set on the ServerR * `oauth_user_id` - the user identifier represented by the access token * `oauth_scopes` - an array of string scope identifiers -If the authorization is invalid an instance of `OAuthServerException::accessDenied` will be thrown. \ No newline at end of file +If the authorization is invalid an instance of `OAuthServerException::accessDenied` will be thrown.