Extending Ldap Authentication with new properties

33 views
Skip to first unread message

Christian Poirier

unread,
May 10, 2018, 1:55:22 PM5/10/18
to CAS Community
Hi

I am developing a new way to let our developer team authenticate with our production usernames but with a generic password in a development environment. This authentication handler will check if the IP address corresponds to those allowed from a property value and the service definition will authorize the use of this authentication handler.

@Configuration("ldapAuthenticationConfiguration")
@EnableConfigurationProperties(CasConfigurationProperties.class)
@Slf4j
public class LdapdevAuthenticationConfiguration extends LdapAuthenticationConfiguration {

// Added properties
}



As I am a newbie on Java development with Spring, if I extends the LdapAuthenticationHandler to LdapdevAuthenticationHandler and use new properties implemented by extending also LdapAuthenticationConfiguration to LdapdevAuthenticationConfiguration. With the previous code what I have to do?
  • Change the
    @Configuration("ldapAuthenticationConfiguration")

    by
    @Configuration("ldapdevAuthenticationConfiguration")

  • Add the ldapdev section in the configuration model or use the current ldap section?
Thanks in advance


Christian Poirier

Man H

unread,
May 11, 2018, 2:03:43 PM5/11/18
to cas-...@apereo.org

--
- 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 cas-user+unsubscribe@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/4357f1d8-56b1-40ad-b4f4-f0a5bac38eb1%40apereo.org.

Reply all
Reply to author
Forward
0 new messages