Elena,

Is that the actual service.json? There is a typo in 'allowedAttribytes'.

Ray

On Tue, 2017-12-26 at 04:14 -0800, Elena wrote:
Hello.

I want to set attributeReleasePolicy in service (json).

I have two attribute - role, firstname - and then I want to return attribute 
only "role".

So I registry service like this.

----------- cas service.json ------------

{
"@class": "org.apereo.cas.services.RegexRegisteredService",
"serviceId": "test1234",
"name" : "test"
"id" : 80000000000000000
"attributeReleasePolicy":{
"@class": "org.apereo.cas.services.ReturnAllowedAttributeReleasePolicy",
"allowedAttribytes":["java.util.ArrayList",["role"]]
}
}

-------------------------------------------------

Then, I call service ticket validation api (/p3/serviceValidate), It return all 
attribute - role, firstname- still..
Even if I set attributeReleasePolicy "deny" but it return all attribute...

I suppose to attributeReleasePolicy is not working in my environment...
Would I set more config about it?

Please give me a guide.

Thanks.


--
Ray Bon
Programmer analyst
Development Services, University Systems
2507218831 | CLE 019 | [email protected]

-- 
- 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/1514914203.4183.9.camel%40uvic.ca.

Reply via email to