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