-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Hi,
I can't get a successful login because the "service" parameter is derived differently during the initial handoff and the later the backend ticket validation call.
In the first instance, the various configurables are used in the call to
phpCAS::setFixedServiceURL(...)
When the ticket is returned and the library makes a behind-the-scenes call to the cas server to it doesn't use include a call to phpCAS::setFixedServiceURL and derives the service differently.
In may case, dokuwiki is in a docker container behind a reverse proxy so there's a few things different (E.g. ports, paths, host) phpCAS just attempts to build it's url itself (but would use a configured $url if set previously)
I've attempted to include a call to setFixedServiceURL(...) before the validation process takes place, but the $login_url parameter is derived from dokuwiki's $QUERY global var.
Unfortunately $QUERY isn't set (in doku.php) until after trustExternal is called (where validation is attempted)
I've hit a roadblock in my own patching. Does anyone have any other suggestions or ways to get the same URL used in both places.?