Users can also log in to Identity Server from any web application instead of logging in from User Portal. To accomplish this, create a form and add it to the application page that will send the user’s credential to Identity Server.
Example of a form:
<form method="post" action="https://login.test-idp.com/nidp/app/login?id=snpw"> <p> <br> <strong>User ID</strong> <input type="text" size="50" name="Ecom_User_ID"> <br> <strong>Password</strong> <input type="password" size="50" name="Ecom_Password"> </p> <p> <input type="submit" name="login" value="Login"> </p> </form>
https://login.test-idp.com/nidp/app/login?id=snpw is the URL to send data through the POST method to Identity Server. This URL sends the user credentials and the ID of the contract. login.test-idp.com is the URL of the Identity Server and snpw is the ID of the contract.
Ensure that the value of the name attribute of username is Ecom_User_ID and password is Ecom_Password.
IMPORTANT:If the login attempt fails, the user will be redirected to the Identity Server login page.