<font face="arial" size="2"><p style="margin:0;padding:0;font-family: arial; font-size: 10pt; word-wrap: break-word;">Thanks again.</p>
<p style="margin:0;padding:0;font-family: arial; font-size: 10pt; word-wrap: break-word;">I need to go thru most documentation to get the hang of it. Will do.</p>
<p style="margin:0;padding:0;font-family: arial; font-size: 10pt; word-wrap: break-word;">I would love to contribute if u can get a php application in place, is it possible for you to direct me to documentation where there are hints regarding the adapter logic?</p>
<p style="margin:0;padding:0;font-family: arial; font-size: 10pt; word-wrap: break-word;">&nbsp;</p>
<!--WM_COMPOSE_SIGNATURE_START-->
<p style="margin:0;padding:0;">Kalinga</p>
<!--WM_COMPOSE_SIGNATURE_END-->
<p style="margin:0;padding:0;font-family: arial; font-size: 10pt; word-wrap: break-word;"><br /><br />-----Original Message-----<br />From: "Stian Thorgersen" &lt;stian@redhat.com&gt;<br />Sent: Tuesday, March 17, 2015 2:25pm<br />To: "Kalinga Dissanayake" &lt;kalinga@leapset.com&gt;<br />Cc: "Bill Burke" &lt;bburke@redhat.com&gt;, keycloak-user@lists.jboss.org<br />Subject: Re: [keycloak-user] Customization of authentication mechanism and +<br /><br /></p>
<div id="SafeStyles1426583748"><br /><br />----- Original Message -----<br />&gt; From: "Kalinga Dissanayake" &lt;kalinga@leapset.com&gt;<br />&gt; To: "Bill Burke" &lt;bburke@redhat.com&gt;<br />&gt; Cc: keycloak-user@lists.jboss.org<br />&gt; Sent: Tuesday, March 17, 2015 8:52:12 AM<br />&gt; Subject: Re: [keycloak-user] Customization of authentication mechanism and +<br />&gt; <br />&gt; <br />&gt; <br />&gt; Thanks again for your quick feedbacks.<br />&gt; <br />&gt; Sorry I have a number of questions so I will be buzzing u guys regularly.<br />&gt; <br />&gt; I went through the document for the adapters;<br />&gt; <br />&gt; http://docs.jboss.org/keycloak/docs/1.1.0.Final/userguide/html/ch08.html<br />&gt; <br />&gt; <br />&gt; <br />&gt; So lets say I need a php application to be deployed using keycloak as my SSO<br />&gt; manager application.<br />&gt; <br />&gt; So my basic requirement is that user should have the ability to signin via<br />&gt; keycloak. I see that there are no dedicated adapters for php (I guess it<br />&gt; must be in the works)<br /><br />We don't have a PHP adapter, and there's no immediate plans to create one. You could use:<br /><br />* JavaScript adapter (http://docs.jboss.org/keycloak/docs/1.1.0.Final/userguide/html/ch08.html#javascript-adapter)<br />* Proxy (http://docs.jboss.org/keycloak/docs/1.1.0.Final/userguide/html/proxy.html)<br /><br />Alternatively have a look on Google for instructions on using OAuth2 and/or OpenID Connect with PHP. Once 1.2.0.Beta1 is released we'll also have a OpenID Connect Discovery endpoint, which should make it easier to use other OpenID Connect client libraries with Keycloak.<br /><br />If you're willing to contribute a PHP adapter then let me know and I can give you more details on what would be required and some hints to get you started.<br /><br />&gt; <br />&gt; <br />&gt; <br />&gt; Is there a guideline that I should follow if I am to do it manually?<br />&gt; Basically what I should to do replicate what an adapter does (if I dont want<br />&gt; to use any adapters or my apps are mobile based or deployed on containers<br />&gt; hat keycloak does not have adapters for). Hope my question is clear.<br />&gt; <br />&gt; <br />&gt; <br />&gt; Kalinga<br />&gt; <br />&gt; <br />&gt; <br />&gt; <br />&gt; -----Original Message-----<br />&gt; From: "Bill Burke" &lt;bburke@redhat.com&gt;<br />&gt; Sent: Monday, March 16, 2015 7:46pm<br />&gt; To: keycloak-user@lists.jboss.org<br />&gt; Subject: Re: [keycloak-user] Customization of authentication mechanism and +<br />&gt; <br />&gt; <br />&gt; <br />&gt; Minimally you need to import username. Probably email too if you want<br />&gt; to use any of our email-based features. With UserFederationProvider you<br />&gt; can delegate to the third-party storage for other user attributes/metadata.<br />&gt; <br />&gt; On 3/16/2015 6:01 AM, Stian Thorgersen wrote:<br />&gt; &gt; We don't currently have a way to plugin your own authentication mechanism,<br />&gt; &gt; but this is something we'll be adding.<br />&gt; &gt; <br />&gt; &gt; You have two choices when it comes to users, you can either use our user<br />&gt; &gt; federation provider mechanism to sync between Keycloak and your current<br />&gt; &gt; db. Or you can migrate the users fully to the Keycloak db. In either case<br />&gt; &gt; you have an option on overriding how passwords are verified (either<br />&gt; &gt; UserFederationProvider or by extending an existing UserProvider). With the<br />&gt; &gt; above authentication mechanism we'll most likely also make the<br />&gt; &gt; verification of passwords pluggable which would support different hash<br />&gt; &gt; algorithms.<br />&gt; &gt; <br />&gt; &gt; ----- Original Message -----<br />&gt; &gt;&gt; From: "Kalinga Dissanayake" &lt;kalinga@leapset.com&gt;<br />&gt; &gt;&gt; To: keycloak-user@lists.jboss.org<br />&gt; &gt;&gt; Sent: Monday, March 16, 2015 10:48:55 AM<br />&gt; &gt;&gt; Subject: [keycloak-user] Customization of authentication mechanism and +<br />&gt; &gt;&gt; <br />&gt; &gt;&gt; <br />&gt; &gt;&gt; <br />&gt; &gt;&gt; Guys,<br />&gt; &gt;&gt; <br />&gt; &gt;&gt; I need to understand the capability of keycloak with my requirement and to<br />&gt; &gt;&gt; ensure that keycloak is scalable to meet my needs. My main requirement is<br />&gt; &gt;&gt; to<br />&gt; &gt;&gt; integrate keycloak to our system to support SSO hence I need to migrate my<br />&gt; &gt;&gt; existing users. My main concerns;<br />&gt; &gt;&gt; <br />&gt; &gt;&gt; <br />&gt; &gt;&gt; <br />&gt; &gt;&gt; 1/ Customize authentication method.<br />&gt; &gt;&gt; <br />&gt; &gt;&gt; I need to authenticate users similar to what we currently use in our<br />&gt; &gt;&gt; production system. In our system, users are identified by username,<br />&gt; &gt;&gt; password<br />&gt; &gt;&gt; and the pin.<br />&gt; &gt;&gt; <br />&gt; &gt;&gt; For instance;<br />&gt; &gt;&gt; <br />&gt; &gt;&gt; User -&gt; jack, password -&gt; pwd, pin -&gt; 50000<br />&gt; &gt;&gt; <br />&gt; &gt;&gt; User should enter all three to login to the system.<br />&gt; &gt;&gt; <br />&gt; &gt;&gt; I went through the codebase and I saw that the Authentication Manager<br />&gt; &gt;&gt; (which<br />&gt; &gt;&gt; is a concrete class) does all the work inside keycloak. I managed to<br />&gt; &gt;&gt; customize the frontend with ease, however, in order to support the pin in<br />&gt; &gt;&gt; the backend seems like I have to customize the AuthenticationManager class<br />&gt; &gt;&gt; (no direct SPIs).<br />&gt; &gt;&gt; <br />&gt; &gt;&gt; Although there is a link here;<br />&gt; &gt;&gt; <br />&gt; &gt;&gt; http://docs.jboss.org/keycloak/docs/1.0-beta-3/userguide/html/authentication-spi.html<br />&gt; &gt;&gt; <br />&gt; &gt;&gt; I cant seem to find anything here which matches the current code base (to<br />&gt; &gt;&gt; via<br />&gt; &gt;&gt; a new authentication method via spis) and the example has been removed.<br />&gt; &gt;&gt; <br />&gt; &gt;&gt; <br />&gt; &gt;&gt; <br />&gt; &gt;&gt; 2/ Customize password hashes.<br />&gt; &gt;&gt; <br />&gt; &gt;&gt; We have our own algorithm used to store password hashes. What should I do<br />&gt; &gt;&gt; to<br />&gt; &gt;&gt; add this to keycloak?<br />&gt; &gt;&gt; <br />&gt; &gt;&gt; I do not know the current passwords of the users already in our system, so<br />&gt; &gt;&gt; when doing the migration i need keyclock to support the current algorithm<br />&gt; &gt;&gt; we<br />&gt; &gt;&gt; use. Can we plugin new hashing algorithms to meet my needs?<br />&gt; &gt;&gt; <br />&gt; &gt;&gt; <br />&gt; &gt;&gt; <br />&gt; &gt;&gt; Any other issues I might face?<br />&gt; &gt;&gt; <br />&gt; &gt;&gt; I feel key cloak is the right choice if the above two questions are<br />&gt; &gt;&gt; answered.<br />&gt; &gt;&gt; Please let me know.<br />&gt; &gt;&gt; <br />&gt; &gt;&gt; _______________________________________________<br />&gt; &gt;&gt; keycloak-user mailing list<br />&gt; &gt;&gt; keycloak-user@lists.jboss.org<br />&gt; &gt;&gt; https://lists.jboss.org/mailman/listinfo/keycloak-user<br />&gt; &gt; _______________________________________________<br />&gt; &gt; keycloak-user mailing list<br />&gt; &gt; keycloak-user@lists.jboss.org<br />&gt; &gt; https://lists.jboss.org/mailman/listinfo/keycloak-user<br />&gt; &gt; <br />&gt; <br />&gt; --<br />&gt; Bill Burke<br />&gt; JBoss, a division of Red Hat<br />&gt; http://bill.burkecentral.com<br />&gt; _______________________________________________<br />&gt; keycloak-user mailing list<br />&gt; keycloak-user@lists.jboss.org<br />&gt; https://lists.jboss.org/mailman/listinfo/keycloak-user<br />&gt; <br />&gt; _______________________________________________<br />&gt; keycloak-user mailing list<br />&gt; keycloak-user@lists.jboss.org<br />&gt; https://lists.jboss.org/mailman/listinfo/keycloak-user</div></font>