I attached the full service that I started with "doesNotWork.json" and one I adjusted after getting an idea from Roberts reply that does seem to work "works.json". I have no idea why it will not run the groovy in the doesNotWork.json, but will when I do it like I did in works.json
Basically when trying to run inline groovy with the "script" attribute it fails. Any ideas? Thank you all for the suggestions so far! Thank you, Matt On Tuesday, February 18, 2025 at 1:00:07 PM UTC-5 Matthew Gordon wrote: > I am using this example for the JSON Attribute Definitions " Embedded > Script" > https://apereo.github.io/cas/7.0.x/integration/Attribute-Definitions.html > > It does not appear to be working, and throws an error: > > 2025-02-18 11:03:12,125 WARN > [org.apereo.cas.authentication.DefaultPrincipalAttributesMapper] - > <Groovy-scripted attribute returned no value for [eduPersonPrincipalName]> > 2025-02-18 11:03:12,132 ERROR > [org.apereo.cas.util.scripting.GroovyShellScript] - <startup failed: > Script1.groovy: 1: Unexpected input: '}' @ line 1, column 109. > Hi', attributes['firstname']] }, canonic > ^ > > 1 error > > ErrorCollector.java:failIfErrors:292 > ErrorCollector.java:addFatalError:148 > AstBuilder.java:collectSyntaxError:4753 > AstBuilder.java:access$100:169 > > > 2025-02-18 11:03:12,132 WARN > [org.apereo.cas.authentication.DefaultPrincipalAttributesMapper] - > <Groovy-scripted attribute returned no value for [eduPersonPrincipalName]> > > > Any idea what could be wrong? > > Thank you, > Matt > -- - Website: https://apereo.github.io/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 visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/3a4bb7e3-6686-4fce-81a6-14564de0cf7fn%40apereo.org.
works.json
Description: application/json
doesNotWork.json
Description: application/json