kakawait / cas-security-spring-boot-starter

Spring boot starter for Apereo CAS client fully integrated with Spring security
MIT License
153 stars 45 forks source link

Proxy Ticket Validator Configuration Property #144

Open naisamendoza opened 4 years ago

naisamendoza commented 4 years ago

Hi,

I was wondering if there is any configuration property to set the proxy ticket validator to false? Because in here, only the proxy chain validation is set. image

So in here, the proxyTicketValidator is always null. image

So it would always generate a proxy ticket validator. image

I'm quite new to CAS so please bear with me.

kakawait commented 4 years ago

You can define your own bean of type TicketValidator thanks to

@ConditionalOnMissingBean(TicketValidator.class)

Builder will not be used.

Or create bean of type CasSecurityConfigurerAdapter and use method void configure(CasTicketValidatorBuilder ticketValidator) to set proxyTicketValidator to false