Skip to content

Commit 2821976

Browse files
committed
[Traits] Add placeholder auth.BearerToken trait
Signed-off-by: Matt Daw <[email protected]>
1 parent 798eaa8 commit 2821976

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

RELEASE_NOTES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ v1.0.0-alpha.x
88

99
- Removed speculative timeline traits pending real-world use cases.
1010

11+
### New Features
12+
13+
- Added `openassetio_mediacreation.traits.auth.BearerTokenTrait`.
14+
1115
v1.0.0-alpha.5
1216
--------------
1317

tests/python/openassetio_mediacreation/test_imports.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,6 @@ def test_importing_ResolvesFutureEntitiesTrait_succeeds(self):
4343

4444
def test_importing_DisplayNameTrait_succeeds(self):
4545
from openassetio_mediacreation.traits.identity import DisplayNameTrait
46+
47+
def test_importing_BearerToken_succeeds(self):
48+
from openassetio_mediacreation.traits.auth import BearerTokenTrait

traits.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,18 @@ traits:
131131
determine a suitable output location.
132132
usage:
133133
- managementPolicy
134+
135+
auth:
136+
description: Traits related to authentication and authorization.
137+
members:
138+
BearerToken:
139+
description: >
140+
This trait holds an authentication token that the manager may
141+
pass to a back-end service.
142+
usage:
143+
- locale
144+
properties:
145+
token:
146+
type: string
147+
description: >
148+
Contents of the token.

0 commit comments

Comments
 (0)