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

Add \Auth0\SDK\Auth0::getLoginUrl() method and switch login() to use it #371

Merged
merged 2 commits into from
Sep 26, 2019

Conversation

joshcanhelp
Copy link
Contributor

Changes

  • Add \Auth0\SDK\Auth0::getLoginUrl() to expose a way to build out a login URL.
  • Change \Auth0\SDK\Auth0::login() to use this method.

References

auth0/laravel-auth0#140

Testing

  • This change adds test coverage
  • This change has been tested on PHP 7.1

stevehobbsdev
stevehobbsdev previously approved these changes Sep 24, 2019
@joshcanhelp
Copy link
Contributor Author

Waiting on a response from the author of auth0/laravel-auth0#140 before I merge this in. Want to make sure it solves that problem.

*
* @return string
*/
public function getLoginUrl(array $params = [])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this method need to be public?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Solves a problem in frameworks that have their own session and redirect handling (see auth0/laravel-auth0#135)

@joshcanhelp joshcanhelp merged commit 91a1bd7 into master Sep 26, 2019
@joshcanhelp joshcanhelp deleted the add-build-auth-url-method branch September 26, 2019 14:53
@github-actions
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants