Hi, my example is not intended to be docs replacement, nevertheless I try to answer your questions.
2017-12-11 4:45 GMT-03:00 noumann.f <[email protected]>: > Thanks, > There some points need explanation: > > - return new CConicetUtil(JpaBeans.newDataSource(query)); > - > *What're the MyUnit, and the CConicetUtil()? whats their purpose?! * > > The purpose of beeing there is to demonstrate how you can add your own beans, in this case the purpose is to register login time after autentication succeeded. This has a corresponding entry in workflow. In other words dont bother about this. > > - > - - JdbcAuthenticationProperties.Query query = > casProperties.getAuthn().getJdbc().getQuery().get(0); > - *in here, doesn't this mean that we are still using the Query > properties! where I need to use custom properties?* > > I am using Cas infrastructure, but of course you could use whatever system you like to load properties in it. Since I am defining a JDBC Auithentication Handler it seems reasonable for me if I use cas jdbc authentication properties. > > - final ConicetAuthenticationHandler handler = new > ConicetAuthenticationHandler("MyAuthenticationHandler", > servicesManager, principalFactory, 1); > - *what is ConicetAuthenticationHandler?? is't the name of the custom > authentication handler?* > > Yes. > - Also DONT use jdbc support dependency as this is going to use > default jdbc AuthenticationHandler as well as yours. > - *BUT I need to authenticate against MySql database?!* > > This is done by MyAuthenticationHandler. I didnt show complete code, but as you can see the handler has been provided with capacity to handle authentication (Datasource, password encoding etc). Thanks again for your appreciated response, > > I used to manage this whole thing nicely in previous versions!! BUT these > whole new changes are not helping without a *more detailed guide *specially > for whom are not JAVA oriented developers!! > I did the same as you in previous versions, but doing it that way would requiere modifying overlay with each release change, whereas now you have code independency. My original code has not changed that much, Authentication Handler is still the same, the only new thing is that you have to register it. Regards > > Best regards, > > On Wednesday, December 6, 2017 at 11:18:28 PM UTC+2, noumann.f wrote: >> >> Hi, >> >> I need to create a custom JDBC authentication handler, I'd done this >> previously with version 4.x but with new version 5.1.x things have changed >> !! >> >> I'm following the guide in here: https://apereo.github.io >> /2017/02/02/cas51-authn-handlers >> but I need more details about registering the new handler and how to >> create special properties for it in the cas.properties and then reach them >> in the code! >> >> Best regards, >> > -- > - Website: https://apereo.github.io/cas > - Gitter Chatroom: https://gitter.im/apereo/cas > - List Guidelines: https://goo.gl/1VRrw7 > - Contributions: https://goo.gl/mh7qDG > --- > You received this message because you are subscribed to the Google Groups > "CAS Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/a/ > apereo.org/d/msgid/cas-user/6e5ef97f-855c-4294-9cbe- > 0ef2b24d884f%40apereo.org > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/6e5ef97f-855c-4294-9cbe-0ef2b24d884f%40apereo.org?utm_medium=email&utm_source=footer> > . > -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAMY5midRHeV3nakqQEUSq_%3D6QpHRmTajWeWDAsr2EtGPT%2B4b2A%40mail.gmail.com.
