Elffuss BraidHub

kikocis/EDC public

main · 1.3 KiBRawPermalink
1'
2' Copyright (c) 2024 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
3'
4' This program and the accompanying materials are made available under the
5' terms of the Apache License, Version 2.0 which is available at
6' https://www.apache.org/licenses/LICENSE-2.0
7'
8' SPDX-License-Identifier: Apache-2.0
9'
10' Contributors:
11' Amadeus - Initial Version
12'
13
14@startuml
15
16
17skinParam NoteBackgroundColor WhiteSmoke
18skinParam NoteFontColor Black
19skinParam ParticipantBackgroundColor WhiteSmoke
20skinParam ActorBackgroundColor WhiteSmoke
21skinParam AgentBackgroundColor White
22skinParam AgentBorderColor SkyBlue
23skinparam shadowing false
24skinparam BoxPadding 10
25
26autonumber
27
28participant DataPlaneAuthorizationService as dpauths
29participant DataPlaneAccessTokenService as dpats
30participant DataPlaneAccessControlService as dpacs
31participant TokenValidationService as tvs
32
33[-> dpauths: <<authorize(token, requestData)>>
34activate dpauths
35dpauths -> tvs: validate token w/ own public key
36activate tvs
37return Result
38dpauths -> dpats: <<resolve(token)>>
39activate dpats
40dpats -> dpats: restore AccessTokenData \nfrom raw token
41return AccessTokenData
42dpauths -> dpacs: <<checkAccess(ClaimToken, DataAddress, requestData)>>
43dpacs --> dpacs: perform access control
44dpacs -> dpauths: return true | false
45
46
47return Result<DataAddress>
48deactivate dpauths
49@enduml