ApiCurio Registry - The artifact owner is mapped with the oid value
Issue
-
When using
Azure Entra ID Oauth token
for authentication & authorization, the artifact owner is mapped with theoid
value while it should be theclient ID
(azp
). -
When we create an artifact using a token. the value of
createdBy
took theoid
as value from token instead of theazp
which represent theClient ID
. For instance:Token:
"azp": "1c5d7dc9-c0d4-441f-930a-a9a1201ace6f", "azpacr": "1", "oid": "f453039e-3c78-4547-9b34-966cf03f33f4",
The output of create artifact command:
{ "contentId": 2, "createdBy": "f453039e-3c78-4547-9b34-966cf03f33f4", ..... "references": [], "state": "ENABLED", "type": "JSON", "version": "1.0.0" }
Environment
- ApiCurio Registry: 2.6.x
- Red Hat OpenShift Container Platform (RHOCP): 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.