Contents of a Principal ("Subject") #23
Replies: 3 comments
-
Agree that a Subject identifier should include at the minimum two things:
It may be helpful to define at least those two as common types ( Adding an optional, generic |
Beta Was this translation helpful? Give feedback.
-
Converted to issue #33 |
Beta Was this translation helpful? Give feedback.
-
General question: long story short: I'd suggest to declare the same representation format for both, subject and resource, and don't stick to special attributes for one or the other: An object becomes a "subject" (resp. "resource") when its in the "subject" part (resp. "resource" part) of the request. |
Beta Was this translation helpful? Give feedback.
-
An ID should likely suffice in most cases. Now it's probably a good idea to also optionally add some Subject claims here that the PDP can use (thinking JWT claims coming into the PEP, or environmental values for example). But in that case it should not be just "IP" and "DeviceID", but rather an array of "key"="Value" claim pairs, or map or similar structure, which may be completely custom and use-case-specific.
Additionally, It would be good to also have a Subject Type - make it optional if not needed (but we would need it for example).
Beta Was this translation helpful? Give feedback.
All reactions