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 cas-user+unsubscr...@apereo.org.
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.

Reply via email to