Uploaded image for project: 'Apache Unomi'
  1. Apache Unomi
  2. UNOMI-825

Hide some profile properties from context request when requirered is set to with all (*)

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • unomi-2.5.0
    • None
    • None

    Description

      To prevent access to all property names when such event is sent to the context endpoint:

      {
      	"requiredProfileProperties": [
      		"*"
      	],
      
      	"events": [
      		
      	]
      }
      

      We need to introduce a mechanism that hides select profile properties in the response.

      A new system tag is added at property type level named: concealed, when set the property is only returned if accessed directly.

      Use cases

      For a given property type myType with the system tag concealed
      A profile with that property set only.
      the following payload:

      {
      	"requiredProfileProperties": [
      		"*"
      	],
      ...
      

      returns no property

      {
      	"requiredProfileProperties": [
      		"myType"
      	],
      ...
      

      returns the property

      {
      	"requiredProfileProperties": [
                      "*",
      		"myType"
      	],
      ...
      

      returns the property

      Attachments

        Activity

          People

            Unassigned Unassigned
            dgriffon David Griffon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h