@ConditionalOnMissingBean(name = CasCookieBuilder.BEAN_NAME_TICKET_GRANTING_COOKIE_BUILDER)
        @Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public CasCookieBuilder ticketGrantingTicketCookieGenerator(
            final CasConfigurationProperties casProperties,
            @Qualifier(CookieValueManager.BEAN_NAME)
            final CookieValueManager cookieValueManager) {
            val context = CookieUtils.buildCookieGenerationContext(casProperties.getTgc());
            return new CookieRetrievingCookieGenerator(context, cookieValueManager);
        }
This is {@link CasCoreCookieAutoConfiguration}.

@author Misagh Moayyed
@since 5.0.0
core/cas-server-core-cookie/src/main/java/org/apereo/cas/config/CasCoreCookieAutoConfiguration.java