Skip to content

Commit

Permalink
Merge pull request #41 from SELab-2/presentatie
Browse files Browse the repository at this point in the history
login-flow diagram voor eerste presentatie
  • Loading branch information
reyniersbram authored Mar 10, 2024
2 parents da450ef + abdc829 commit 3777679
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Binary file added presentaties/presentatie1/login_flow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions presentaties/presentatie1/login_flow.uml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@startuml
Client -> API: GET /api/authority
API --> Client: {authority: "https://login.ugent.be", method: "cas"}
Client -> CAS: Redirect: https://login.ugent.be/login?service=https://sel2-5.ugent.be/login
CAS --> CAS: User authenticates
CAS -> Client: Redirect: https://sel2-5.ugent.be/login?ticket=ST-123456
Client -> API: POST /api/token {ticket: "ST-123456", returnUrl: "https://sel2-5.ugent.be/login"}
API -> CAS: Verify "ST-123456"
CAS --> API: {user, attributes}
API --> Client: {token: "eyJ.{sub: user_id, exp: "1 week"}.<sig>", token_type: "Bearer"}
@endstartuml

0 comments on commit 3777679

Please sign in to comment.