Hi everybody!
I using CAS 5.1.5 and LDAP , when i went to use Gerrit-oauth-provider
<https://github.com/davido/gerrit-oauth-provider/blob/master/src/main/resources/Documentation/config.md>
encountered
some problems...
In Gerrit-oauth-provider
<https://github.com/davido/gerrit-oauth-provider/blob/master/src/main/resources/Documentation/config.md>
login
succes need response like
{
"attributes":[
{ email : "[email protected]" },
{ name : "Lu. Kent" }
],
"id" : "kent_lu"
}
But i don't know how to let response attributes like "Array of Map"...if
anyone have any idea can tell me, thanks.
My CAS setting like (CAS Attribute Release Policies
<https://apereo.github.io/cas/5.1.x/integration/Attribute-Release-Policies.html>
)
application.properties
cas.authn.ldap[0].principalAttributeList=cn:name,mail:email
gerrit.json
{
"@class": "org.apereo.cas.support.oauth.services.OAuthRegisteredService",
"clientId": "clientid",
"clientSecret": "xxxx",
"bypassApprovalPrompt": true,
"generateRefreshToken": false,
"serviceId": "^(https|imaps|http)://.*",
"name": "Gerrit",
"description": "Gerrit",
"id": 100,
"attributeReleasePolicy": {
"@class" :
"org.apereo.cas.services.ReturnAllowedAttributeReleasePolicy",
"allowedAttributes" : [ "java.util.ArrayList", [ "name", "email" ] ]
}
}
Kent
--
- 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/eb904c78-17fc-4c75-a87b-c16cc89500db%40apereo.org.