diff --git a/composer.json b/composer.json index 322a56e4..d5b8b8f2 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "require": { "php": ">=5.3.0", "illuminate/support": "5.*", - "auth0/auth0-php": "^5.0.0", + "auth0/auth0-php": "^5.1.0", "illuminate/contracts": "5.*" }, "autoload": { diff --git a/src/Auth0/Login/Auth0Service.php b/src/Auth0/Login/Auth0Service.php index 5d0c0658..fe596fe9 100644 --- a/src/Auth0/Login/Auth0Service.php +++ b/src/Auth0/Login/Auth0Service.php @@ -53,8 +53,8 @@ public function logout() */ public function login($connection = null, $state = null, $aditional_params = ['scope' => 'openid profile email'], $response_type = 'code') { - $url = $this->authApi->get_authorize_link($response_type, $this->auth0Config['redirect_uri'], $connection, $state, $aditional_params); - return \Redirect::to($url); + $this->auth0->response_type = $response_type; + $this->auth0->login($state, $connection, $additional_params); } /**