Hi all,

I'm setting up a SAML2 service and running into unexpected behavior with
the syntax for building the PrincipalID using
the GroovyRegisteredServiceUsernameProvider. Here's what I'm attempting to
do:

[snip]
"requiredNameIdFormat":
"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent",
"usernameAttributeProvider" : {
    "@class" :
"org.apereo.cas.services.GroovyRegisteredServiceUsernameProvider",
    "groovyScript" : "groovy { return attributes['wcWhitmanId'] + '@
whitman.edu' }",
    "canonicalizationMode" : "NONE"
  }
[snip]

Based on the documentation
<https://apereo.github.io/cas/5.3.x/integration/Attribute-Release-PrincipalId.html#inline>.
I'm expecting this to concatenate the wcWhitmanId attribute with the text "@
whitman.edu" as a string of format "123...@whitman.edu" (where 124356 is a
sample value of the wcWhitmanId attribute.

Instead, what's being built and sent is this:
principal=SimplePrincipal(id=[123456, @whitman.edu]

Which looks like an array to me.

What am I doing wrong here?

Thanks!
Mike

-- 
- 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/CAEdMQHWX%3DgcoK_va0YgZhF-PjKz7Uz-SM0B%3DfvS_1tefGU5ZiA%40mail.gmail.com.

Reply via email to