package
0.2.22
Repository: https://github.com/opentdf/platform.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
RegisterAuthorizationServiceHandler registers the http handlers for service AuthorizationService to "mux".
RegisterAuthorizationServiceHandlerClient registers the http handlers for service AuthorizationService to "mux".
RegisterAuthorizationServiceHandlerFromEndpoint is same as RegisterAuthorizationServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterAuthorizationServiceHandlerServer registers the http handlers for service AuthorizationService to "mux".
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

AuthorizationService_ServiceDesc is the grpc.ServiceDesc for AuthorizationService service.
Enum value maps for DecisionResponse_Decision.
Enum value maps for DecisionResponse_Decision.
Enum value maps for Entity_Category.
Enum value maps for Entity_Category.
No description provided by the author

# Structs

Example Request Get Decisions to answer the question - Do Bob (represented by entity chain ec1) and Alice (represented by entity chain ec2) have TRANSMIT authorization for 2 resources; resource1 (attr-set-1) defined by attributes foo:bar resource2 (attr-set-2) defined by attribute foo:bar, color:red ? { "actions": [ { "standard": "STANDARD_ACTION_TRANSMIT" } ], "entityChains": [ { "id": "ec1", "entities": [ { "emailAddress": "[email protected]" } ] }, { "id": "ec2", "entities": [ { "userName": "[email protected]" } ] } ], "resourceAttributes": [ { "resourceAttributeId": "attr-set-1", "attributeFqns": [ "https://www.example.org/attr/foo/value/value1" ] }, { "resourceAttributeId": "attr-set-2", "attributeFqns": [ "https://example.net/attr/attr1/value/value1", "https://example.net/attr/attr1/value/value2" ] } ] }.
Example response for a Decision Request - Do Bob (represented by entity chain ec1) and Alice (represented by entity chain ec2) have TRANSMIT authorization for 2 resources; resource1 (attr-set-1) defined by attributes foo:bar resource2 (attr-set-2) defined by attribute foo:bar, color:red ? Results: - bob has permitted authorization to transmit for a resource defined by attr-set-1 attributes and has a watermark obligation - bob has denied authorization to transmit a for a resource defined by attr-set-2 attributes - alice has permitted authorization to transmit for a resource defined by attr-set-1 attributes - alice has denied authorization to transmit a for a resource defined by attr-set-2 attributes { "entityChainId": "ec1", "resourceAttributesId": "attr-set-1", "decision": "DECISION_PERMIT", "obligations": [ "http://www.example.org/obligation/watermark" ] }, { "entityChainId": "ec1", "resourceAttributesId": "attr-set-2", "decision": "DECISION_PERMIT" }, { "entityChainId": "ec2", "resourceAttributesId": "attr-set-1", "decision": "DECISION_PERMIT" }, { "entityChainId": "ec2", "resourceAttributesId": "attr-set-2", "decision": "DECISION_DENY" }.
PE (Person Entity) or NPE (Non-Person Entity).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
A set of related PE and NPE.
Entity type for custom entities beyond the standard types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Request to get entitlements for one or more entities for an optional attribute scope Example: Get entitlements for bob and alice (both represented using an email address { "entities": [ { "id": "e1", "emailAddress": "[email protected]" }, { "id": "e2", "emailAddress": "[email protected]" } ], "scope": { "attributeFqns": [ "https://example.net/attr/attr1/value/value1", "https://example.net/attr/attr1/value/value2" ] } }.
Example Response for a request of : Get entitlements for bob and alice (both represented using an email address { "entitlements": [ { "entityId": "e1", "attributeValueReferences": [ { "attributeFqn": "http://www.example.org/attr/foo/value/bar" } ] }, { "entityId": "e2", "attributeValueReferences": [ { "attributeFqn": "http://www.example.org/attr/color/value/red" } ] } ] }.
A logical bucket of attributes belonging to a "Resource".
No description provided by the author
Example Request Get Decisions by Token to answer the question - Do Bob and client1 (represented by token tok1) and Alice and client2 (represented by token tok2) have TRANSMIT authorization for 2 resources; resource1 (attr-set-1) defined by attributes foo:bar resource2 (attr-set-2) defined by attribute foo:bar, color:red ? { "actions": [ { "standard": "STANDARD_ACTION_TRANSMIT" } ], "tokens": [ { "id": "tok1", "jwt": ...
UnimplementedAuthorizationServiceServer must be embedded to have forward compatible implementations.

# Interfaces

AuthorizationServiceClient is the client API for AuthorizationService service.
AuthorizationServiceServer is the server API for AuthorizationService service.
UnsafeAuthorizationServiceServer may be embedded to opt out of forward compatibility for this service.

# Type aliases

No description provided by the author
No description provided by the author