davidjbrossard / alfa-authorization-language

A repository for the IETF RFC proposal for ALFA 2.0
Other
0 stars 0 forks source link

Implicit Attribute Identifier #3

Open andrewclymer opened 4 months ago

andrewclymer commented 4 months ago

When defining an attribute in ALFA, the PIP (Policy Information Point) id of the attribute is often the same name as the attribute in ALFA

attribute department { type=string category=resourceCat id="department" }

Suggest making the id optional. The value will be implicitly assigned based on the attribute name. Resulting in both code blocks having the equivalent functionality.

attribute department { type=string category=resourceCat  }
davidjbrossard commented 3 months ago

To be more specific, the ID will be the fully-qualified name (FQN) of the attribute e.g.

namespace com.example{
    attribute department{
        type=string
        category=resourceCat
        // id = "com.example.department"
    }
}