generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
3 changed files
with
193 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,30 @@ | ||
# hdc-licences-and-delius | ||
# HDC Licences and Delius | ||
|
||
// TODO Describe the service | ||
Supports integration between [HDC Licences](https://github.com/ministryofjustice/hmpps-hdc-api) and [Delius](https://github.com/ministryofjustice/delius). _HDC Licences_ is an HMPPS Digital service to manage applications for Home Detention Curfew, facilitating communication between the prison and probation staff managing the case. This involves assessing the details of the application (e.g. assess the proposed address for suitability) and submission for consideration in the custody release process. | ||
|
||
## Business Need | ||
|
||
Ensuring the user of the _HDC Licences_ has an up-to-date view of the probation case in _Delius_ when working on a licence application. | ||
|
||
## Context Map | ||
|
||
![Context Map](./tech-docs/source/img/hdc-licences-context-map.svg) | ||
|
||
## Workflows | ||
|
||
### Add HDC Role to Delius User | ||
|
||
A _Delius_ identity may be used to authenticate and authorise access to the _HDC Licences_ system. A _Delius_ role determines whether an authenticated _Delius_ user can access _HDC Licences_ and these HDC-specific roles can be added to the _Delius_ user via an API call. | ||
|
||
## Interfaces | ||
|
||
### API Access Control | ||
|
||
API endpoints are secured by roles supplied by the HMPPS Auth client used in the requests | ||
|
||
| API Endpoint | Required Role | | ||
|-----------------------|-----------------------------------------| | ||
| PUT /users/{username} | PROBATION\_API_\_HDC_\_USER\_ROLES_\_RW | | ||
| GET /staff/* | PROBATION\_API_\_HDC_\_STAFF | | ||
| GET /providers/* | PROBATION\_API_\_HDC_\_STAFF | | ||
| GET /case/* | PROBATION\_API_\_HDC_\_STAFF | |
36 changes: 36 additions & 0 deletions
36
projects/hdc-licences-and-delius/tech-docs/diag/hdc-licences-context-map.d2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
style { ...@../../../../script/style.style } | ||
vars { ...@../../../../script/style.vars } | ||
** { ...@../../../../script/style.all-style } | ||
|
||
context-delius: Delius Context { | ||
|
||
entities: Entities { | ||
grid-columns: 3 | ||
delius-user: Delius User | ||
delius-role: Delius Role | ||
provider: Provider | ||
pdu: Probation Delivery Unit | ||
lau: Local Admin Unit | ||
staff: Staff | ||
team: Team | ||
pop: Person on Probation | ||
com: Community Offender Manager | ||
pom: Prison Offender Manager | ||
} | ||
|
||
interface: HDC Licences and Delius { | ||
type: Anti-Corruption\nLayer | ||
} | ||
} | ||
|
||
context-hdc-licences: HDC Licences Context { | ||
entities: Entities { | ||
grid-columns: 3 | ||
user: HDC Licences User | ||
pip: Person in Prison | ||
probation-team: Probation Team | ||
} | ||
} | ||
|
||
context-delius.interface--context-hdc-licences: Upstream\n\n\nDownstream |
Oops, something went wrong.