<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
The idea with IDPs and SSO is that the Authentication server
collects username and credentials. The app NEVER sees them. <br>
<br>
We do have a REST api that you can invoke to valid a user and obtain
a token. If you use this though, and you don't let keycloak gather
username/credentials itself through the browser, then SSO just won't
work. The auth server needs to set up an SSO cookie with your
browser for SSO to work.<br>
<br>
<div class="moz-cite-prefix">On 1/15/2016 5:04 PM, Martin Min wrote:<br>
</div>
<blockquote
cite="mid:CAKUZDO4Mp527x6unm5qoAknUbuWXWjmXsMo0mz+tCp+CWfHcAQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hello,
<div><br>
</div>
<div>I have followed the keycloak "customer-portal" 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
"customer-linking", 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><security-constraint></div>
<div> <web-resource-collection></div>
<div>
<web-resource-name>Customers</web-resource-name></div>
<div>
<url-pattern>/customers/*</url-pattern></div>
<div> </web-resource-collection></div>
<div> <auth-constraint></div>
<div> <role-name>user</role-name></div>
<div> </auth-constraint></div>
<div> </security-constraint></div>
</div>
<div><br>
</div>
<div>In my case, users don'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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Bill Burke
JBoss, a division of Red Hat
<a class="moz-txt-link-freetext" href="http://bill.burkecentral.com">http://bill.burkecentral.com</a></pre>
</body>
</html>