How to use REST Attribute Release Policy (Return Restful)?

20 views
Skip to first unread message

Fahmi L. Ramdhani

unread,
Apr 5, 2019, 12:39:09 PM4/5/19
to CAS Community
Hello,

How to use REST Attribute Release Policy? REST Endpoint filled with? I tried to do something stupid, I route (on my website) to give a JSON 200 response with a response:

{
 
"@class" : "org.apereo.cas.services.RegexRegisteredService",
 
"serviceId" : "^https://client.example.com(\\z|\/.*)",
 
"name" : "Return Restful",
 
"id" : 300,
 
"description" : "Test RESTful Attribute Release Policy",
 
"attributeReleasePolicy" : {
   
"@class" : "org.apereo.cas.services.ReturnMappedAttributeReleasePolicy",
   
"allowedAttributes" : {
     
"@class" : "java.util.TreeMap",
     
"email" : "email",
     
"name" : "name",
     
"phone" : "phone"

   
}
 
}
}


Oops! The test failed. I mean that the service releases attributes based on the released attribute list (JSON). How to use the REST? Sorry if my question is a little stupid.

Thankyou
Fahmi




Attribute-Release-Policy.JPG
Reply all
Reply to author
Forward
0 new messages