Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

specify type for subjects #45

Open
tr33 opened this issue Nov 6, 2023 · 1 comment
Open

specify type for subjects #45

tr33 opened this issue Nov 6, 2023 · 1 comment

Comments

@tr33
Copy link

tr33 commented Nov 6, 2023

Ref "Subjects" contains definition for subject entity with a mandatory "id" attribute.
There is no definition of a subject type - contrary to "resource", which has a mandatory type.

In practice, an entity (object) may be referenced in both roles, sometimes as a subject, sometimes as a resource - depending on the context.
recommendation: describe "subject" and "resource" the same with both mandatory "id" and "type" attributes.

Change:
A Subject is a JSON ({{RFC8259}}) object that has the following fields:

id: : OPTIONAL. A field, whose value is of type string, which uniquely identifies the user within the scope of a PEP. This identifier could be an email address, or it might be an internal identifier such as a UUID or employee ID.

type: : OPTIONAL. The type of the subject. Its value is a string that specifies the type of the subject

@baboulebou
Copy link
Collaborator

see previous comment... I'd rather suggest id to be mandatory, any String, + add any attributes as needed, at the discretion of the implementers...
Or else, then provide a list of attributes that would make sense for several types of subjects: humans, IoT, Services.

@tulshi tulshi linked a pull request Dec 11, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants