The new WRD auth in 5.8 seems to have broken my RPC login.
I have this RPC defined:
<webservice name="frontendapi"
crossdomainorigins="*"
library="frontendapi/frontendapi.whlib"
prefix="rpc_"
primarytrans="auto"
requirewhaccount="false"
transports="jsonrpc">
<accesscheck />
</webservice>
And wrdauth in siteprl:
<apply>
<to type="all" sitemask="Stagedriver*" />
<wrd:wrdauth wrdschema="stagedriver:stagedriver"
cookiename="webharelogin-stagedriver-
4123125123"
nohttponlycookies="true"
samesitecookie="none"
/>
</apply>
Login function:
this->auth->Login(email, password)
this->auth comes from webdesign->GetWRDAuthPlugin().
RPC is doing:
auth->Login(email, password)
However, doesn't work anymore.
This can be traced back to this CallJS in /wrd/lib/internal/auth/webdesignplugin.whlib:
RECORD result := CallJS("@mod-platform/js/auth/harescript.ts#login", this->webcontext->baseurl, returnto ?? this->webcontext->baseurl, loginname, password, GetTidLanguage(), options.remoteip, agent, options.persistent);
Which results in the WRD functions to get the system:usermgmt WRD schema.
Question is: how to tell WebHare that it should use a different WRD schema? Afaik, I can only use siteprofiles for this, which doesn't help for wh_services links.