| 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 TokenGenerationService as tgs |
| 31 | |
| 32 | [-> dpauths: <<createEndpointDataReference(DataFlowStartMessage)>> |
| 33 | activate dpauths |
| 34 | dpauths -> dpauths: convert DataFlowStartMessage to \nTokenParameters + DataAddress |
| 35 | dpauths -> dpats: <<obtainToken(tokenParams, dataAddress)>> |
| 36 | activate dpats |
| 37 | |
| 38 | dpats->dpats: convert TokenParameters -> TokenDecorator[] |
| 39 | |
| 40 | dpats -> tgs: <<generate(TokenDecorator[])>> |
| 41 | activate tgs |
| 42 | return TokenRepresentation |
| 43 | |
| 44 | dpats --> dpauths: return TokenRepresentation \n(containing serialized JWT) |
| 45 | deactivate dpats |
| 46 | [<-- dpauths: return serialized JWT |
| 47 | deactivate dpauths |
| 48 | |
| 49 | @enduml |