Skip to content

Commit

Permalink
Utilise Auth0->Login to ensure state validation
Browse files Browse the repository at this point in the history
Update auth0-PHP dependency
  • Loading branch information
cocojoe committed Dec 5, 2017
1 parent f93ccd6 commit d015be6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions src/Auth0/Login/Auth0Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit d015be6

Please sign in to comment.