That is what i tried initially, but the transition from success to create
tgt was still happening.  It wasn't until i removed it the , that i could
stop that transition, and instead send it to aup.

I believe the reason I couldn't just provide my own x509WebflowConfigurer
bean in loo of the default one, is the way that specific Configuration
class works.  It implements CasWebflowExecutionPlanConfigurer, and that
method calls  x509WebflowConfigurer() which means it doesn't get Autowired
in, it gets called directly.

--
Curtis Ruck


On Mon, Sep 24, 2018 at 12:45 PM Andy Ng <[email protected]> wrote:

> Hi Curtis,
>
> *> So I finally solved this*
> Great that you solve it
>
> *>  essentially had to remove the cas-server-support-x509-webflow
> dependency... where getting rid of the spring xml configura*tion makes
> this more difficult
> There is no need to remove the entire dependency to make small changes, *the
> ability to do small tweaks is still here,* just using a different form
> then spring.xml.
>
> I do not have your source code so I cannot pin point exactly what you did,
> but I think you have editing something in this file -
> "
> https://github.com/apereo/cas/blob/v5.3.3/support/cas-server-support-x509-webflow/src/main/java/org/apereo/cas/web/flow/X509WebflowConfigurer.java";,
> correct?
>
> If so, you can try the following (Did not tried it yet, might not work out
> of the box, I am not accountable for the code breaking on you if it breaks
> ):
> 1. keep the *cas-server-support-x509-webflow dependency *, do not need to
> discard it.
> 2. *spring.factories (src/main/resource/META-INF/spring-factories)*
> org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
> mydomain.com.example.MyDomainX509AuthenticationWebflowConfiguration
>
> 3. *MyDomainX509AuthenticationWebflowConfiguration.java*
> (src/main/java/yourdomain/
> MyDomainX509AuthenticationWebflowConfiguration.java)
> @Configuration("myDomainX509AuthenticationWebflowConfiguration ")
> @EnableConfigurationProperties(CasConfigurationProperties.class)
> @Slf4j
> public class MyDomainX509AuthenticationWebflowConfiguration implements
> CasWebflowExecutionPlanConfigurer {
>
>
> @Autowired(required = false)
> @Qualifier("loginFlowRegistry")
> private FlowDefinitionRegistry loginFlowDefinitionRegistry;
> @Autowired(required = false)
> private FlowBuilderServices flowBuilderServices;
> @Autowired
> private ApplicationContext applicationContext;
> @Autowired
> private CasConfigurationProperties casProperties;
>
>
> @Bean
> @DependsOn("defaultWebflowConfigurer") @DependsOn("YOUR_OWN_DEPENDENCY")
> public CasWebflowConfigurer x509WebflowConfigurer() {
> return new MyDomainX509WebflowConfigurer(flowBuilderServices,
> loginFlowDefinitionRegistry, applicationContext, casProperties);
> }
>
> }
>
> 4. *MyDomainX509WebflowConfigurer.java*
> (src/main/java/yourdomain/MyDomainX509WebflowConfigurer.java)
> Edit what you need inside "
> https://github.com/apereo/cas/blob/v5.3.3/support/cas-server-support-x509-webflow/src/main/java/org/apereo/cas/web/flow/X509WebflowConfigurer.java";,
> you could even use super.doInitialize() to reduce the code needed to be
> copied.
>
>
> Then you should be able to edit only the necessary part inside your CAS
> without replacing the entire project. Is this similar to what you have in
> mind?
>
> Cheers!
> - Andy
>
> --
> - 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/5bb54980-4ae9-4ea2-a5b4-b5031aeaa11d%40apereo.org
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/5bb54980-4ae9-4ea2-a5b4-b5031aeaa11d%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/CAFgGLFee4EfLBPQqk0-Ku0en%3DyhoYgaZaAJz%2BMjhKkwmoRpY7w%40mail.gmail.com.

Reply via email to