<div dir="ltr">Hello,<div><br></div><div>I have followed the keycloak &quot;customer-portal&quot; demo to learn KeyCloak, and want to use it in an application, but have no idea of how to start with KeyCloak. This is what I need:</div><div><br></div><div>On my home page, there is a typical user name login and registration box, as you can see in many sites. How to configure KeyCloak and register in my application so that after user types username and password, then Keyclaok will do the job for me.</div><div><br></div><div>In the customer-demo, the user first click a link &quot;customer-linking&quot;, which redirects to the KeyCloak server for authentication, and this is configured in Web.xml, in particular this section:</div><div><br></div><div><div>&lt;security-constraint&gt;</div><div>        &lt;web-resource-collection&gt;</div><div>            &lt;web-resource-name&gt;Customers&lt;/web-resource-name&gt;</div><div>            &lt;url-pattern&gt;/customers/*&lt;/url-pattern&gt;</div><div>        &lt;/web-resource-collection&gt;</div><div>        &lt;auth-constraint&gt;</div><div>            &lt;role-name&gt;user&lt;/role-name&gt;</div><div>        &lt;/auth-constraint&gt;</div><div>    &lt;/security-constraint&gt;</div></div><div><br></div><div>In my case, users don&#39;t have to click a link to re-direct to Keycloak server to accept user input. My home page directly provides users with the user and password fields in the html form. How can i extend or modify the customer-portal demo to set up a very basic user login functionality in KeyClaok for my application? </div><div><br></div><div>I understand this is probably something very basic, but I appreciate any feed back and information to achieve this.</div><div><br></div><div>Thank you.</div></div>