Unicon / cas

Apereo CAS - Enterprise Single Sign On for all
https://apereo.github.io/cas/
Apache License 2.0
1 stars 0 forks source link

MGMT: Support consent policy for attribute release policy #13

Closed mmoayyed closed 7 years ago

mmoayyed commented 7 years ago

Per discussions, here are the API changes: https://github.com/apereo/cas/blob/master/docs/cas-server-documentation/integration/Attribute-Release-Consent.md#attribute-selection

{
  "@class" : "org.apereo.cas.services.RegexRegisteredService",
  "serviceId" : "sample",
  "name" : "sample",
  "id" : 100,
  "description" : "sample",
  "attributeReleasePolicy" : {
    "@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy",
    "consentPolicy":
    {
      "@class": "org.apereo.cas.services.consent.DefaultRegisteredServiceConsentPolicy",
      "excludedAttributes":["java.util.LinkedHashSet", ["test"]],
      "includeOnlyAttributes":["java.util.LinkedHashSet", ["test"]],
      "enabled": true
    }
  }
}

UI should provide the option so the collection of attributes that are included/excluded can be manipulated on screen. (allow for adds/remove, etc)

tsschmidt commented 7 years ago

I have added this in the latest push. Take a look and see if it was what you were expecting