From f6fd15681e95ea916d5ec40e70e46997fabb2b90 Mon Sep 17 00:00:00 2001 From: Ben Corlett Date: Fri, 13 Sep 2013 16:49:32 +1000 Subject: [PATCH] Tweak method for consistency. Signed-off-by: Ben Corlett --- src/League/OAuth2/Client/Provider/IdentityProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/League/OAuth2/Client/Provider/IdentityProvider.php b/src/League/OAuth2/Client/Provider/IdentityProvider.php index 70112f8..4963ea6 100644 --- a/src/League/OAuth2/Client/Provider/IdentityProvider.php +++ b/src/League/OAuth2/Client/Provider/IdentityProvider.php @@ -46,7 +46,7 @@ abstract class IdentityProvider { abstract public function userDetails($response, \League\OAuth2\Client\Token\AccessToken $token); - public function getAuthorizationUri($options = array()) + public function getAuthorizationUrl($options = array()) { $state = md5(uniqid(rand(), true)); setcookie($this->name.'_authorize_state', $state); @@ -65,7 +65,7 @@ abstract class IdentityProvider { public function authorize($options = array()) { - header('Location: ' . $this->getAuthorizeUri($options)); + header('Location: ' . $this->getAuthorizeUrl($options)); exit; }