The organization owning the outway must be able to revoke access
It is not possible for a consumer to 'quit' or 'cancel' and ongoing access request. This potentially result in unnecessary activities (time spend by the owner of the service to assess the request) and when something is wrong at the owner side (the Inway) an access request with an error state will exists indefinitely (or at least until the owner fixes its problem). In order to have control over the access requests, it's necessary to be able to delete an request. Since you might delete a request which was actually already granted by the owner (the consumer just doesn't know that yet), it must also be possible to then cancel access from the consumer side of things. And if that's an option, then we just as easily can add that functionality to the UI making it explicitly possible.
Acceptance criteria:
-
Add two buttons
-
one for cancelling access as a consumer (when you already had access)
- must result in removing the access grant and maybe the proof -> figure it out
- showing the correct status for the access of the specific outway -> back to no access again with the messages/status access cancelled by 'Ingetrokken door [user]' including time stamp
- adding an audit log entry at the consumer side
- add the request access button
-
one for canceling an access request as a consumer
- The cancelling access request button is only visible when at the supplier side the access is not granted (could be that the revoke action hasn't synchronized yet)
- remove the access request on both sides
- add audit record
- the status of the access of the specific outway must be No access including 'geannuleerd door [user]' and a timestamp
- add the request access button
-
-
Add end to end tests
-
Check and update documentation when necessary
TODO:
-
Make split in audit log between action start and action end -
Add database integration tests -
Update Management UI -
Update Inway -
Syncer moet approved access state niet opniuew updaten -
Sequence diagram -
Check if there are changes to convert GORM to sqlc