Sign-in with external service breaks when this plugin is active
-
I’m using Simple WordPress Membership on a testing site and it works great so far. I’d like the sign-in process to be handled externally – in my case, that’s Amazon Cognito, so I have another (my) plugin that does that. The sign-in flow works on a plain-vanilla site.
The problem arises when I activate the Simple WordPress Membership (SWPM) – the sign-in stops working and this is what I’ve found so far.
The last few lines of code that apparently stop working ar these:
wp_clear_auth_cookie(); wp_set_current_user($user_id); wp_set_auth_cookie($user_id); do_action('wp_login', $user->user_login, $user);
To me, it looks like SWPM does something afterward that prevents the authentication info to be remembered in the cookies.
I suspect that I might need to add some code to my own plugin to let SWPM that I did the sign-in myself.
Can you suggest a solution?
Thanks for the great work on your plugin!
- The topic ‘Sign-in with external service breaks when this plugin is active’ is closed to new replies.