Can't setup auth with custom Wordpress path
brodkin opened this issue · 3 comments
Hey there, not sure if this is a bug or a configuration problem, but...
I have the plugin configured to hit my Idp's (Keycloak) IDP initiated login URL:
https://example.com/auth/realms/master/protocol/saml/clients/wordpress
That redirect works as expected, but there is a URL mismatch:
Destination in response doesn't match the current URL. Destination is "https://example.com/wp/wp-admin", current URL is "https://example.com/wp".
This sorta makes sense because the Wordpress root is https://example.com/wp
, but the homepage is at https://example.com/
. I can simply tell Keycloak to use https://example.com/wp
as the base URL and the error goes away, but then no login actually takes place.
Any ideas?
Hi @brodkin,
I've run into this once before but I don't recall the resolution. It'd be great to track it down and document in the README.
Can you share your configuration settings? In particular, I'm curious about these two values:
The only way I can get it to work on my site is with the assertionConsumerService url set to home_url( '/wp-login.php' )
@brodkin you probably need to set it to home_url( '/wp/wp-login.php' )
It'd be great to track it down and document in the README.
This was updated in #134