Skip to content

Commit 821fc92

Browse files
committed
Refactor authentication flow in start_analysis_flow diagram to include AuthController interactions
1 parent 2a5959c commit 821fc92

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/architecture/start_analysis_flow.puml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title Start Analysis Flow
33

44
actor User
55
participant "Client (React)" as Client
6+
participant "AuthController" as Auth
67
participant "RequestResource" as Controller
78
participant "RequestService" as ReqService
89
participant "RepositoryFetchingService" as RepoService
@@ -13,9 +14,13 @@ participant "Git Server" as Git
1314

1415
== Authentication Phase ==
1516
User -> Client: Enter Credentials & Click "Start"
16-
Client -> Controller: POST /api/auth/login
17+
Client -> Auth: POST /api/auth/login
1718
note right of Client: Sends username, password, serverUrl
18-
Controller -> Client: 200 OK (Set-Cookie: jwt, username, password)
19+
Auth -> ArtemisClient: authenticate(url, user, pass)
20+
ArtemisClient -> Artemis: POST /api/core/public/authenticate
21+
Artemis --> ArtemisClient: 200 OK (Set-Cookie: jwt)
22+
ArtemisClient --> Auth: jwtToken
23+
Auth -> Client: 200 OK (Set-Cookie: jwt, username, password)
1924
Client -> Client: Navigate to /teams
2025

2126
== Data Loading Phase ==

0 commit comments

Comments
 (0)