Skip to content

Commit

Permalink
chore: semantic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amertak committed Nov 8, 2023
1 parent b8df053 commit a4a9b66
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/general/attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ These attributes may be used for any operation with an authenticated or anonymou
<!-- semconv identity -->
| Attribute | Type | Description | Examples | Requirement Level |
|---|---|---|---|---|
| `enduser.id` | string | Username or client_id extracted from the access token or [Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) header in the inbound request from outside the system. | `username` | Recommended |
| `enduser.anon_id` | string | Randomly generated id of an anonymous user that is persisted throughout the lifetime of the visits. | `V1StGXR8_Z5jdHi6B-myT` | Recommended |
| `enduser.id` | string | Username or client_id extracted from the access token or [Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) header in the inbound request from outside the system. | `username` | Recommended |
| `enduser.role` | string | Actual/assumed role the client is making the request under extracted from token or application security context. | `admin` | Recommended |
| `enduser.scope` | string | Scopes or granted authorities the client currently possesses extracted from token or application security context. The value would come from the scope associated with an [OAuth 2.0 Access Token](https://tools.ietf.org/html/rfc6749#section-3.3) or an attribute value in a [SAML 2.0 Assertion](http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html). | `read:message, write:files` | Recommended |
<!-- endsemconv -->
Expand Down
7 changes: 6 additions & 1 deletion model/general.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ groups:
prefix: enduser
type: span
brief: >
These attributes may be used for any operation with an authenticated and/or authorized enduser.
These attributes may be used for any operation with an authenticated or anonymous enduser.
attributes:
- id: id
type: string
Expand All @@ -24,6 +24,11 @@ groups:
[Authorization](https://tools.ietf.org/html/rfc7235#section-4.2)
header in the inbound request from outside the system.
examples: 'username'
- id: anon_id
type: string
brief: >
Randomly generated id of an anonymous user that is persisted throughout the lifetime of the visits.
examples: 'V1StGXR8_Z5jdHi6B-myT'
- id: role
type: string
brief: 'Actual/assumed role the client is making the request under extracted from token or application security context.'
Expand Down

0 comments on commit a4a9b66

Please sign in to comment.