I am trying to set up WebHare as an identity provider in a dev:blankjs module to enable login to another app using WebHare.
I followed
the instructions on dev to set up the WRD as an identity provider, verified i can see json on the .wellknown/openid-configuration endpoint and added the serviceprovider with callbackurl. Like what has been done in the testsuitte i want to use the system:usermgmt schema aswell.
I also added WRD Auth to the site profile, including the login page, like so:
```
wrdschema="system:usermgmt"
cachefields="wrd_fullname"
cookiename="webharelogin-coeihwafg89472rqgwhuifjlaeb982q4riqw"
lastloginfield="LASTLOGIN"
loginpage="currentsite::/" />
```
The login page is set up as follows:
```
<form id="loginform" class="wh-wrdauth__loginform" autocomplete="off" method="POST">
<input name="login" id="login" placeholder="login"><br>
<input name="password" id="password" placeholder="password" type="password"><br>
<input type="submit" id="loginbutton" value="Login">
</form>
```
In the main TypeScript file of the web design, I use the SetUpWRDAuth() function to add form functionality.
The steps above result in a working login form, but it does not redirect back to the other app to complete the login process.
Am I missing something? Should I avoid using SetUpWRDAuth() and use something else instead? Or am i supposed to implement my own authentication flow instead?