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

Bad redirect after login #103

Closed
wixaw opened this issue Sep 29, 2021 · 3 comments
Closed

Bad redirect after login #103

wixaw opened this issue Sep 29, 2021 · 3 comments

Comments

@wixaw
Copy link

wixaw commented Sep 29, 2021

Hello
I update ur plugin 3.1.2 to 3.2 and after CAS login we are redirect to site.com/wp-admin/ instead of site.com
After downgrade with wp plugin update authorizer --version=3.1.2 it's works !
I use wp 5.8.1 and php 7
Thanks you in advance
William

@figureone
Copy link
Member

  1. Is this from wp-login.php or a custom login form?
  2. Do you have a redirect_to param in the login URL? That's ultimately what will dictate where it will go after authenticating.
  3. What external service are you using?

Any other details you can provide are also appreciated.

@wixaw
Copy link
Author

wixaw commented Sep 30, 2021

I use a custom admin link ( with 'WPS Hide Login' plugin ) who redirect siteom/custom_admin to site.com/wp-admin/
I see a redirect param but it's not me who set that
I use CAS provider
I use a custom roles but if i disable i have a same issue
I looked in your last commits, but I do not find anything

@figureone
Copy link
Member

Aloha, we added custom code to detect if the WPS Hide Login plugin is being used, and redirect to the home page after login if so. The problem was Authorizer was redirecting back to the login page after logging in, and WPS Hide Login plugin will redirect that to /wp-admin.

The fix is included in version 3.2.1 just released.

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

No branches or pull requests

2 participants