You can do this by injecting a step in the the default cas login webflow. Change the webflow to do an emailCheck action before the generation the TGT. This will simply check if the email exist. If it does then return success and proceed to the TGT step. Otherwise return some other string like "addEmailAction" which will prompt for the email and insert it into your target system. Then have that "addEmailAction" return success to continue to the TGT step.
-psv On Friday, August 5, 2022 at 11:51:42 AM UTC-5 vjo...@gmail.com wrote: > Hello, > > Context : I use CAS 6.5 with LDAP. > > I have a question for which I will need your advice on the best practice > to follow. > > When creating our users in LDAP, they don't have an email address. > Their connection is made with an employee number and a password provided, > which they must change on the first connection. > This all works, however we would like to require users to fill in their > email if it is not. > > Is it possible to do this natively with CAS, or should interrupts be used > to redirect to another application? > > Thank you in advance for your help ! > -- - 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+unsubscr...@apereo.org. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/029b2c17-9d4a-4fc8-a956-2aeffa824f7dn%40apereo.org.