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

Not redirecting to admin path after SSO login #106

Closed
jakuub opened this issue Nov 24, 2015 · 6 comments
Closed

Not redirecting to admin path after SSO login #106

jakuub opened this issue Nov 24, 2015 · 6 comments

Comments

@jakuub
Copy link

jakuub commented Nov 24, 2015

The use case:

  1. I am logged to other part of the page with my admin e-mail
  2. from this other part of my application, I am redirected to create post
  3. I am not loged in the wordpress, so wordpress redirects me to wp-login page with appropriet recirect_to url
  4. auth0 will automaticly logged in me (I have SSO checbox checked in settings)
  5. after this login, i was redirected to homepage instead of creating the post (I have appropriate role to create post)

When i place link to the browser like this: http://mypage.me/wp-admin/post-new.php when i am not logged in WP but logged in other part of the app, it will logg me in, but redirect not to creating of the post, but to homepage.

It don't happend, when SSO is off and only Remember last login is checked.

I also tried fresh install of wordpress and wp-auth0 and this there were also this bug.

@glena
Copy link
Contributor

glena commented Nov 25, 2015

Thanks for reporting, I will review and target to fix for the next release

@jakuub
Copy link
Author

jakuub commented Dec 4, 2015

Thank you very much. Can I have a question, when approximetly it will be?

@jakuub
Copy link
Author

jakuub commented Dec 15, 2015

Hello, is there som ETA on next release please?

@glena
Copy link
Contributor

glena commented Dec 15, 2015

Sorry no ETA, BUT can you replace this lines

https://github.com/auth0/wp-auth0/blob/1940d7de2ad4bcfb4ffba5c05e39a86339827eb7/templates/auth0-login-form.php#L49-L51

with this:

$extraOptions = array(
    "state" => $state,
    "authParams"    => array("state" => $state),
);

This should do the trick and when you update the plugin for the next release, it should continue working as expected.

@jakuub
Copy link
Author

jakuub commented Dec 15, 2015

Perfect, thank you very much. It works :-).

@glena
Copy link
Contributor

glena commented Dec 15, 2015

cool :) sorry for the delay.

@glena glena closed this as completed Dec 15, 2015
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 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

No branches or pull requests

2 participants