ResourcePrincipalClaimKeys¶
-
class
borneo.
ResourcePrincipalClaimKeys
[source]¶ Bases:
object
Claim keys in the resource principal session token(RPST).
They can be used to retrieve resource principal metadata such as its compartment and tenancy OCID.
Attributes Summary
COMPARTMENT_ID_CLAIM_KEY
The claim name that the RPST holds for the resource compartment. TENANT_ID_CLAIM_KEY
The claim name that the RPST holds for the resource tenancy. Attributes Documentation
-
COMPARTMENT_ID_CLAIM_KEY
= 'res_compartment'¶ The claim name that the RPST holds for the resource compartment. This can be passed to
borneo.iam.SignatureProvider.get_resource_principal_claim()
to retrieve the resource’s compartment OCID.
-
TENANT_ID_CLAIM_KEY
= 'res_tenant'¶ The claim name that the RPST holds for the resource tenancy. This can be passed to
borneo.iam.SignatureProvider.get_resource_principal_claim()
to retrieve the resource’s tenancy OCID.
-