Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
gem-cp committed Jun 4, 2024
1 parent f4a23cd commit 5182d4a
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions src/plantuml/sm-b-auth.puml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ skinparam lengthAdjust none

participant Client
box "LEI" #GhostWhite
participant Konnektor
participant Konnektor as "Konnektor or\nTI-Gateway"
participant SMB as "SM-B"
end box

Expand All @@ -28,16 +28,18 @@ activate Client
alt #White
Client -> HP: GET /resource
activate HP
HP --> Client: 401 Unauthorized; json body with Well-Known json Document
HP --> Client: 401 Unauthorized; json body with Well-Known json Document (RFC8414)
deactivate HP
else
Client -> AuthS: GET /.well-known/oauth-authorization-server 
activate AuthS
AuthS --> Client: 200 OK; json body with Well-Known json Document
Client -> HP: GET /.well-known/oauth-authorization-server 
activate HP
HP --> Client: 200 OK; json body with Well-Known json Document (RFC8414)
deactivate HP
end

Client -> Client: generate DPoP keypair
Client -> AuthS: GET /nonce
activate AuthS
AuthS --> Client: return 200 OK new-nonce: nonce
Client -> Client: create JWT with\n nonce\n Client and OS Information\n DPoP Thumbprint
Client -> Konnektor: externalAuthenticate JWT-hash
Expand Down Expand Up @@ -66,7 +68,7 @@ AuthS -> AuthS: verify Client Assertion, DPoP
AuthS -> PDP: POST /v1/data/authz, json body { "input": {...}}
PDP --> AuthS: 200 OK, json body {"result": {"allow": true, ...}}
AuthS -> AuthS: issue tokens
AuthS -> Client: 200 OK, access token, refresh token, bound to DPoP
AuthS --> Client: 200 OK, access token, refresh token, bound to DPoP
deactivate AuthS
Client -> Client: Create DPoP Proof for RS

Expand All @@ -76,10 +78,12 @@ HP -> HP: verify access token and\nDPoP Binding
HP -> RS: forward GET /resource\n\
(access token, DPoP)
activate RS
RS -> RS: provide resource access
RS -> HP: 200 OK, resource
RS -> RS: provide\n\
resource\n\
access
RS --> HP: 200 OK, resource
deactivate RS
HP -> Client: 200 OK, resource
HP --> Client: 200 OK, resource
deactivate HP
deactivate RS
deactivate Client
Expand Down

0 comments on commit 5182d4a

Please sign in to comment.