AnonymousSpottedToad/securityPatternsRecovery / security_patterns /session_based_access_control /04_pattern.json
| { | |
| "name": "Session-based access control", | |
| "summary": "A subject is authenticated using a session identifier, i.e an opaque token, which the subject can use for multiple action requests. The subject's authenticated principal is used to assess whether the subject is authorise to perform the requested action.", | |
| "roles": [ | |
| { | |
| "name": "Subject", | |
| "type": "Entity", | |
| "required": false, | |
| "description": "wants to perform an action on the `System`" | |
| }, | |
| { | |
| "name": "Authentication enforcer", | |
| "type": "Enforcement point", | |
| "required": true, | |
| "description": "ensures the session id provided by the `Subject` is verified before the requested action is processed, this entity must be incorporated into the system" | |
| }, | |
| { | |
| "name": "Verifier", | |
| "type": "Decision point", | |
| "required": true, | |
| "description": "verifies whether the received session identifier corresponds to an open session" | |
| }, | |
| { | |
| "name": "Session manager", | |
| "type": "Entity", | |
| "required": true, | |
| "description": "keeps track of open sessions" | |
| }, | |
| { | |
| "name": "Authorisation enforcer", | |
| "type": "Enforcement point", | |
| "required": true, | |
| "description": "ensures the requested action is only executed if it is allowed by the authorisation policy" | |
| }, | |
| { | |
| "name": "Decider", | |
| "type": "Decision point", | |
| "required": true, | |
| "description": "verifies the `Subject`s access request against the authorisation policy" | |
| }, | |
| { | |
| "name": "Policy provider", | |
| "type": "Entity", | |
| "required": true, | |
| "description": "keeps track of the applied authorisation policy" | |
| }, | |
| { | |
| "name": "System", | |
| "type": "Entity", | |
| "required": false, | |
| "description": "executes the received action requests" | |
| } | |
| ], | |
| "behaviour": [ | |
| { | |
| "step": "1", | |
| "from": "Subject", | |
| "to": "Authentication enforcer", | |
| "kind": "action", | |
| "element": "action(sessionId[, args])", | |
| "description": "The `Subject` requests an action from the `System` and provides a `token` as proof of its claimed identity. If token verification fails, the `Authentication enforcer` informs the `Subject` that an error has occurred." | |
| }, | |
| { | |
| "step": "2", | |
| "from": "Authentication enforcer", | |
| "to": "Verifier", | |
| "kind": "action", | |
| "element": "verify(sessionId)", | |
| "description": "The `Authentication enforcer` intercepts the `Subject`'s requests and forwards the `token` to the `Verifier` for verification. The `Verifier` sends the result of the verification (principal or error) to the `Authentication enforcer`." | |
| }, | |
| { | |
| "step": "3", | |
| "from": "Verifier", | |
| "to": "Session manager", | |
| "kind": "action", | |
| "element": "get_principal(token)", | |
| "description": "The `Verifier` requests the `principal` that matches the received `token` from the `Session manager`. The `Session manager` retrieves the `principal`, if any, associated with the provided `token` and replies it (or an error) to the `Verifier`." | |
| }, | |
| { | |
| "step": "4", | |
| "from": "Authentication enforcer", | |
| "to": "Authorisation enforcer", | |
| "kind": "action", | |
| "element": "action(principal[, args])", | |
| "description": "If the `Authentication enforcer` receives a principal as reply to the token verification it forwards the action request, with the token substituted by the principal, to the `Authorisation enforcer`." | |
| }, | |
| { | |
| "step": "5", | |
| "from": "Authorisation enforcer", | |
| "to": "Decider", | |
| "kind": "action", | |
| "element": "authorise(principal, actionId, objectId)", | |
| "description": "The `Authorisation enforcer` translates the requested action to the corresponding `actionId(s)` and `objectId(s)` and forwards a request for authorisation to the `Decider`. Based on the received privileges the `Decider` determines whether the request is authorised or not and sends the result of this decision (ok or error) to the `Authorisation enforcer`." | |
| }, | |
| { | |
| "step": "6", | |
| "from": "Decider", | |
| "to": "Policy provider", | |
| "kind": "action", | |
| "element": "get_privileges(principal)", | |
| "description": "The `Decider` requests the relevant privileges for the `principal` from the `Policy provider`. The `Policy provider` retrieves the requested privileges and replies (privileges or error) to the `Decider`." | |
| }, | |
| { | |
| "step": "7", | |
| "from": "Authorisation enforcer", | |
| "to": "System", | |
| "kind": "action", | |
| "element": "action(principal[, args])", | |
| "description": "If the request was authorised the `Subject`'s original request is forwarded to the `System` for execution." | |
| }, | |
| { | |
| "step": "8", | |
| "from": "Authorisation enforcer", | |
| "to": "Subject", | |
| "kind": "data", | |
| "element": "error", | |
| "description": "Otherwise the `Subject` is informed that an error has occurred." | |
| }, | |
| { | |
| "step": "9", | |
| "from": "System", | |
| "to": "Subject", | |
| "kind": "data", | |
| "element": "reply", | |
| "description": "The `System` may reply to the `Subject`, for example, to provide the result of the action or to confirm the request was successfully received. This reply does not need to pass through the `Authentication enforcer` or `Authorisation enforcer`. (Optional)" | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 5.38 kB
- Xet hash:
- acd4c833eea446e3758264116e6912466d65730fece1391ad48f4281d080452c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.