at_policy 1.2.0
at_policy: ^1.2.0 copied to clipboard
Policy management via atProtocol
at_policy examples #
Overview #
- Imagine a client which is making a request to some service; it can make
three types of request
getPublicInfogetProtectedInfogetConfidentialInfo
- The service needs to make a policy decision for each request - should it
respond with the info, or respond with a "not permitted" error? It
asks
policyfor information about how it should respond
Programmes #
client.dart- sends requests to
service
- sends requests to
service.dart- listens for requests from
clientand determines client intent - sends message to
policyrequesting info about what policy decision it should make regarding the client's intent
- listens for requests from
policy.dart- listens for requests from
servicewith policy intents - responds with the info that
servicerequires in order to be able to make a policy decision
- listens for requests from