Nikolas Stylianides, Dr.
--
- 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/e9ce28d5-72f9-4229-9dcc-51ad9a8e1150n%40apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAD6Knbz0u4iNgJL8MA%2Bq9_c7NFF92VpqgGh-zR_WRbdz8H0Z-Q%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/f3be7f46-156e-4d64-a481-cc39eb7d2a48n%40apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAD6KnbxsAjjKyJ5bxQwBaE1GJy36pAF5xNQa-c_ZN8wowsmSaQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAGp1hEXFAV5XWB2jsohMTuxRH00FKbmMgXhuOQNQnCwp2293WA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAGp1hEXsCPhv6HsedTkEM3QZ2KnPZQyO1sdSkUBZidtFAM8abQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAGp1hEVqj_5z7xrKFxHzOOdTXHD92_2Efuh_GhgScYQfo-m0mw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAD6KnbzAaFg3%3D2EOtySWJ_3pdrAXCc7CFtuycdmvZQ37FU1t0g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAGp1hEVKyTn59aUmMD28z8jNB_sYULr5pEbDzqUoZ0ViWD37LA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAD6KnbwMFSXnim84tCRpQYUU1XKS%2BuNs6e_L41DvDdRkru75MA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAGp1hEUOE-qufm9nRWAhb4yFuLKUYb_3oGvJGOdmFz6HrF_WTg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAD6KnbwHtH8%3D5uS0wa%2BmFZCyCjg20wPfEjw%3DPk%2B_pnvBOXGGOw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAGp1hEVn7TprvkianWhiugPN5WROTkjOFdFGkukWAZYnxV%2BTgA%40mail.gmail.com.
*[Scenario A](#scenario-a)
*[Scenario B](#scenario-b)
# Scenario A
## Settings
```
cas.authn.oidc.user-defined-scopes.myownscope=email,given_name,preferred_username
cas.authn.oidc.claimsMap.email=mail
cas.authn.oidc.claimsMap.given_name=givenName
```
## Outcome
```
{
"sub": "username",
"service": "c44c3fc514202ac9a8cc5cf6437c1c21",
"auth_time": 1598508832,
"attributes": {
"email": "a...@gmail.com",
"given_name": "TestMe"
},
"id": "username",
"client_id": "c44c3fc514202ac9a8cc5cf6437c1c21"
}
```
## Debug CAS
<Located claim [email] mapped to attribute [mail], yet resolved attributes [{email=[a...@gmail.com], given_name=[TestMe], oauthClientId=[c44c3fc514202ac9a8cc5cf6437c1c21]}] do not contain this attribute>
<Located claim [given_name] mapped to attribute [givenName], yet resolved attributes [{email=[a...@gmail.com], given_name=[TestMe], oauthClientId=[c44c3fc514202ac9a8cc5cf6437c1c21]}] do not contain this attribute>
# Scenario B
##Settings
```
cas.authn.oidc.user-defined-scopes.myownscope=mail,givenName
cas.authn.oidc.claimsMap.email=mail
cas.authn.oidc.claimsMap.given_name=givenName
```
## Outcome
```
{
"sub": "username",
"service": "c44c3fc514202ac9a8cc5cf6437c1c21",
"auth_time": 1598509383,
"attributes": {
"email": "a...@gmail.com",
"given_name": "TestMe",
"givenName": "TestMe",
"mail": "a...@gmail.com"
},
"id": "username",
"client_id": "c44c3fc514202ac9a8cc5cf6437c1c21"
}
```
## Debug CAS
no complaining for missing attributes
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAD6KnbyYi9WAkhBbxZ-Uiu6fdZjGzDLBve05_%2BRWjU97Uox_GA%40mail.gmail.com.
{
...
"claim_test": "test_value",
...
"attributes": {
"claim_test": "test_value"
},
...
}
Jérôme.To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAGp1hEUSfLpMgY3xiC_Jxs_2ek0C3Ez%2B5Jc6TGw41wfhEJPRRA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAD6KnbxpZCFe%3DgdE5WB8ZwA6Cx_6gyT%2BwqAbfK5H_%2B02-ptTbg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAGp1hEX-6ZF3x_PRJX0tNZX2OZmiUBD3C8rdPJHEEsJE4jW4ag%40mail.gmail.com.