-
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.
- Loading branch information
Showing
4 changed files
with
26 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,23 @@ | ||
# High level flow of signing in to a service that requires authorisation to the teaching record via GOV.UK One Login | ||
|
||
The `start` represents the point at which a user visits a service domain for example [Access Your Teaching Qualifications](https://access-your-teaching-qualifications.education.gov.uk/qualifications/start). | ||
They would be re-directed to [GOV.UK One Login](https://www.sign-in.service.gov.uk/) to sign in. The Teaching Record System will handle the OAUTH flow between GOV.UK One Login and the calling service, as part of this flow it will provide authorisation against the teaching record. Allowing the calling service to grant access depending on finding a match and passing any other access rules needed to access the teaching record data. | ||
|
||
```mermaid | ||
flowchart TD | ||
Start[Start] --> OneLogin[Sign in with One Login] | ||
OneLogin --> Verified{Identity verified?} | ||
Verified -->|Yes| TrnKnown{TRN known for user?} | ||
TrnKnown -->|Yes| Done | ||
TrnKnown -->|No| Nino[Ask for NINO & lookup record] | ||
Nino --> FoundAfterNino{Teaching record found?} | ||
FoundAfterNino -->|Yes| RecordTrn[Record TRN for user] | ||
RecordTrn --> Done | ||
FoundAfterNino -->|No| Trn[Ask for TRN & lookup record] | ||
Trn --> FoundAfterTrn{Teaching record found?} | ||
FoundAfterTrn -->|Yes| RecordTrn | ||
FoundAfterTrn -->|No| LookupFailed[Support ticket & error page?] | ||
Verified -->|No| VerificationFailed[Error page?] | ||
Done[Done: redirect to calling service] | ||
``` | ||
|