Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

send param in redirectHandler #262

Merged
merged 1 commit into from Apr 20, 2015

Conversation

xjchengo
Copy link

add a param to redirectHandler, so we can easily get state and so on in redirectHandler.

$provider->setRedirectHandler(function($url, $provider){
    $_SESSION['oauth2state'] = $provider->state;
    header('Location: '.$url);
    exit;
}

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.94%) to 83.33% when pulling 8e05351 on xjchengo:redirect-handler-add-param into 419b476 on thephpleague:1.0.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.06%) to 84.34% when pulling 8e05351 on xjchengo:redirect-handler-add-param into 419b476 on thephpleague:1.0.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.06%) to 84.34% when pulling 8e05351 on xjchengo:redirect-handler-add-param into 419b476 on thephpleague:1.0.

@ramsey
Copy link
Contributor

ramsey commented Apr 20, 2015

Thank you for your contribution!

ramsey added a commit that referenced this pull request Apr 20, 2015
@ramsey ramsey merged commit 939b411 into thephpleague:1.0 Apr 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants