Jen,
You need something like this in the service provider JSON:
"usernameAttributeProvider" : {
"@class" :
"org.apereo.cas.services.DefaultRegisteredServiceUsernameProvider",
"canonicalizationMode" : "UPPER"
}
The canonicalizationMode: “UPPER” should do the trick.
Thanks,
Tom
From: [email protected] <[email protected]> On Behalf Of Jennifer LaVoie
Sent: Wednesday, December 19, 2018 11:20 AM
To: CAS Community <[email protected]>
Subject: [cas-user] username cas in CAS
Hello Everyone
We have 1 app that wants the username returned in UPPERCASE. We have the
attribute set to pull SamAccountName and in AD, that is UPPER CASE...but when I
log into CAS with lower case, it is passing my username to the app in lower
case...when I log in as upper case, it passes to the app in upper case...how
can I fix this?
Thank you
Jen
--
- 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 [email protected]<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/15b14998-d661-443e-a784-7e9ce61b4120%40apereo.org<https://groups.google.com/a/apereo.org/d/msgid/cas-user/15b14998-d661-443e-a784-7e9ce61b4120%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 [email protected].
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/DM5PR02MB32761ED8FA13628C734D25AFCBBE0%40DM5PR02MB3276.namprd02.prod.outlook.com.