Hello Mathieu, 

Thank you for your reply!

It's not even getting that far. It's like it's not attempting to process 
the groovy script for the interrupt. I did attempt to add those lines, in 
several places, and did not see any output in the tomcat or CAS logs.

2022-05-18 16:41:51,370 DEBUG 
[org.apereo.cas.interrupt.webflow.actions.InquireInterruptAction] - 
<Invoking interrupt inquirer using [GroovyScriptInterruptInquirer]>
2022-05-18 16:41:51,373 DEBUG 
[org.apereo.cas.interrupt.webflow.actions.InquireInterruptAction] - 
<Webflow interrupt is skipped since no inquirer produced a response>

I am using the example code here: 
https://apereo.github.io/cas/6.5.x/webflow/Webflow-Customization-Interrupt-Groovy.html

Thank you,
Matt

On Tuesday, May 17, 2022 at 12:53:48 PM UTC-4 Mathieu HETRU wrote:

> Can you use println instead of logger ? like this :
>
> println "==========================="
> println principal
> println service
> println "==========================="
>
> Best Regards,
>
> Le dim. 15 mai 2022 à 02:00, Matthew Gordon <mago...@hacc.edu> a écrit :
>
>> Built CAS 6.5.3 with:
>> support-interrupt-webflow
>>
>> Added this line to the config:
>> cas.interrupt.groovy.location=/etc/cas/scripts/INTERRUPT.groovy
>>
>> It does not appear to be calling the groovy script at all. I even added 
>> an intentional coding error expecting to break CAS, and nothing. Any ideas?
>>
>> LOG:
>> 2022-05-14 19:53:37,426 DEBUG 
>> [org.apereo.cas.interrupt.webflow.actions.InquireInterruptAction] - 
>> <Invoking interrupt inquirer using [GroovyScriptInterruptInquirer]>
>> 2022-05-14 19:53:37,429 DEBUG 
>> [org.apereo.cas.interrupt.webflow.actions.InquireInterruptAction] - 
>> <Webflow interrupt is skipped since no inquirer produced a response>
>>
>>
>> SCRIPT:
>>
>> import org.apereo.cas.interrupt.InterruptResponse
>>
>> def run(final Object... args) {
>>     def principal = args[0]
>>     def attributes = args[1]
>>     def service = args[2]
>>     def registeredService = args[3]
>>     def requestContext = args[4]
>>     def logger = args[5]
>>
>>     logger.info("**principal - Attributes:")
>>     principal.properties.each {  logger.info("KEY: $it.key -> VALUE: 
>> $it.value") }
>>
>>     logger.info("**attributes - Attributes:")
>>     attributes.properties.each {  logger.info("KEY: $it.key -> VALUE: 
>> $it.value") }
>>
>>     logger.info("**service - Attributes:")
>>     service.properties.each {  logger.info("KEY: $it.key -> VALUE: 
>> $it.value") }
>>
>>     logger.info("**registeredService - Attributes:")
>>     registeredService.properties.each {  logger.info("KEY: $it.key -> 
>> VALUE: $it.value") }
>>
>>     logger.info("**requestContext - Attributes:")
>>     requestContext.properties.each {  logger.info("KEY: $it.key -> 
>> VALUE: $it.value") }
>>
>>     def block = false
>>     def ssoEnabled = false
>>
>>     return new InterruptResponse("Message", [link1:"google.com", link2:"
>> yahoo.com"], block, ssoEnabled)
>>     
>>     /*return new InterruptResponse(message: message, redirectTo: 
>> redirectTo, block: block, ssoEnabled: ssoEnabled, autoRedirect: true, 
>> autoRedirectAfterSeconds: 1)*/
>> }
>>
>> -- 
>> - 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+u...@apereo.org.
>> To view this discussion on the web visit 
>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/add29812-d0ec-41b1-8d6e-b26708e71917n%40apereo.org
>>  
>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/add29812-d0ec-41b1-8d6e-b26708e71917n%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 cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/8750ab0f-40a6-41f6-aa1b-40132e42478cn%40apereo.org.

Reply via email to