| 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 | |
| 17 | skinParam NoteBackgroundColor WhiteSmoke |
| 18 | skinParam NoteFontColor Black |
| 19 | skinParam ParticipantBackgroundColor WhiteSmoke |
| 20 | skinParam ActorBackgroundColor WhiteSmoke |
| 21 | skinParam AgentBackgroundColor White |
| 22 | skinParam AgentBorderColor SkyBlue |
| 23 | skinparam shadowing false |
| 24 | skinparam BoxPadding 10 |
| 25 | |
| 26 | autonumber |
| 27 | |
| 28 | participant DataPlaneAuthorizationService as dpauths |
| 29 | participant DataPlaneAccessTokenService as dpats |
| 30 | participant DataPlaneAccessControlService as dpacs |
| 31 | participant TokenValidationService as tvs |
| 32 | |
| 33 | [-> dpauths: <<authorize(token, requestData)>> |
| 34 | activate dpauths |
| 35 | dpauths -> tvs: validate token w/ own public key |
| 36 | activate tvs |
| 37 | return Result |
| 38 | dpauths -> dpats: <<resolve(token)>> |
| 39 | activate dpats |
| 40 | dpats -> dpats: restore AccessTokenData \nfrom raw token |
| 41 | return AccessTokenData |
| 42 | dpauths -> dpacs: <<checkAccess(ClaimToken, DataAddress, requestData)>> |
| 43 | dpacs --> dpacs: perform access control |
| 44 | dpacs -> dpauths: return true | false |
| 45 | |
| 46 | |
| 47 | return Result<DataAddress> |
| 48 | deactivate dpauths |
| 49 | @enduml |