You are welcome! And one more thing. While writing your SomethingConfiguration class with @Configuration annotation please note that your class should be in package org.apereo.cas or its subpackages (according to this: https://groups.google.com/a/apereo.org/forum/#!topic/cas-user/WKzqlZrmvS8 )
Regards, Yauheni On Friday, December 23, 2016 at 1:48:44 PM UTC+3, Gokhan Mansuroglu wrote: > > Though expected to see more information, I am very surprised to see > Turkey's Tombili in this blog :) > > Thank you. > > 23 Aralık 2016 Cuma 12:33:09 UTC+3 tarihinde Yauheni Sidarenka yazdı: >> >> Hello, >> >> Please read this https://apereo.github.io/2016/10/07/webflow-extcfg/ >> <https://www.google.com/url?q=https%3A%2F%2Fapereo.github.io%2F2016%2F10%2F07%2Fwebflow-extcfg%2F&sa=D&sntz=1&usg=AFQjCNH6c7KJdnDfuBDjIvp5neKU7Wbj7A> >> >> if you have not read yet. I believe it may help you. >> >> >> As far as I can see, I can only add new transtions and modifying an >>> existing one is not possible. >> >> >> I am using CAS 5.0.0 and I have this in my web flow configurer: >> >> final Flow flow = super.getLoginFlow(); >> final TransitionSet ts = >> flow.getTransitionableState("handleAuthenticationFailure").getTransitionSet(); >> final Iterator<Transition> it = ts.iterator(); >> while (it.hasNext()) { >> if >> ("AccountLockedException".equals(it.next().getMatchingCriteria().toString())) >> { >> it.remove(); >> } >> } >> final Transition t = createTransition("AccountLockedException", >> "initializeLoginForm"); >> ts.add(t); >> >> >> So I removed old default transition and added my custom one. >> >> Regards, >> Yauheni >> >> On Friday, December 23, 2016 at 9:47:36 AM UTC+3, Gokhan Mansuroglu wrote: >>> >>> Hi Ray, >>> >>> Modifying the weblow.xml does not work since the flow is configured by >>> the DefaultWebflowConfigurer. Even the viewGenericLoginSuccess state >>> doesn't appear in the xml, it is added programmatically. >>> >>> Actually I could modify the transitions as below : >>> >>> private void modifyTransitionDefinition(Flow flow, String >>> stateId, String eventId, String targetStateId) { >>> TransitionableState state = (TransitionableState) flow.getState( >>> stateId); >>> if (state != null) ((Transition) state.getTransition(eventId)). >>> setTargetStateResolver(new DefaultTargetStateResolver(targetStateId)); >>> } >>> >>> >>> But this is really complicated because you can't see the complete flow >>> in the login-flow.xml. I think this is an important issue. I am trying to >>> upgrade my cas version from 3.3.3 to 5.0.0 and in the 3.3.3 I can see the >>> overall flow in one xml file, now It seems to be impossible. >>> >>> I don't know if I am doing something wrong but doesn't anyone have the >>> same requirement ? >>> >>> >>> 22 Aralık 2016 Perşembe 19:26:20 UTC+3 tarihinde Ray Bon yazdı: >>>> >>>> Gokhan, >>>> >>>> You can, of course, modify the classes for viewGenericLoginSuccess or >>>> create your own phase and modify the webflow.xml to point to your classes. >>>> @see >>>> https://apereo.github.io/cas/4.1.x/installation/Webflow-Customization.html >>>> and >>>> https://apereo.github.io/cas/5.0.x/installation/Webflow-Customization.html >>>> >>>> Ray >>>> >>>> On 2016-12-21 23:41, Gokhan Mansuroglu wrote: >>>> >>>> Hello, >>>> >>>> In the following default flow I need to change the >>>> viewGenericLoginSuccess transition. As far as I can see, I can only >>>> add new transtions and modifying an existing one is not possible. Is there >>>> any solution ? >>>> >>>> Thank you. >>>> >>>> 2016-12-22 09:36:03,065 DEBUG [DecisionState] - <Entering state >>>> 'serviceCheck' of flow 'login'> >>>> 2016-12-22 09:36:03,065 DEBUG [Transition] - <Executing [ >>>> Transition@a6925f on = *, to = viewGenericLoginSuccess]> >>>> 2016-12-22 09:36:03,065 DEBUG [Transition] - <Exiting state >>>> 'serviceCheck'> >>>> 2016-12-22 09:36:03,065 DEBUG [EndState] - <Entering state >>>> 'viewGenericLoginSuccess' of flow 'login'> >>>> >>>> >>>> >>>> -- >>>> - CAS gitter chatroom: https://gitter.im/apereo/cas >>>> - CAS mailing list guidelines: >>>> https://apereo.github.io/cas/Mailing-Lists.html >>>> - CAS documentation website: https://apereo.github.io/cas >>>> - CAS project website: https://github.com/apereo/cas >>>> --- >>>> 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/a2f15f9c-3ebe-492d-987e-c9f903ba6103%40apereo.org >>>> >>>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/a2f15f9c-3ebe-492d-987e-c9f903ba6103%40apereo.org?utm_medium=email&utm_source=footer> >>>> . >>>> >>>> >>>> -- >>>> Ray Bon >>>> Programmer Analyst >>>> Development Services, University Systems >>>> 2507218831 | CLE C023 | [email protected] >>>> >>>> -- - CAS gitter chatroom: https://gitter.im/apereo/cas - CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html - CAS documentation website: https://apereo.github.io/cas - CAS project website: https://github.com/apereo/cas --- 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/8677308d-bd64-4868-8dcb-cb5b8dd52625%40apereo.org.
