File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -33,17 +33,22 @@ flowchart TB
3333 HHAPI[🏢 HeadHunter OAuth2 API<br/>api.hh.ru]
3434 end
3535
36- %% OAuth Flow
36+ %% OAuth Flow (первичная авторизация):
3737 Browser -->|1. OAuth Request| KeenDNS
3838 KeenDNS -->|2. Forward| Nginx
39- Nginx -->|3. Proxy| App
40- App <-->|4. API Calls| HHAPI
39+ Nginx -->|3. Proxy :8000| App
40+ App -->|4. OAuth callback| HHAPI
41+ App -->|5. Сохраняет первый tokens| TokenStore
4142
42- %% Token Refresh
43- Timer -.->|Trigger| Script
44- Script -->|5. Refresh| HHAPI
45- Script -->|6. Save| TokenStore
46- App -->|7. Read| TokenStore
43+ %% Production Flow (работа приложения):
44+ App -->|6. Считывание tokens| TokenStore
45+ App <-->|7. API запросы| HHAPI
46+
47+ %% Token Refresh Flow (автообновление):
48+ Timer -.->|8. Trigger| Script
49+ Script -->|9. Обновляет tokens| HHAPI
50+ Script -->|10. Сохраняет new tokens| TokenStore
51+
4752
4853 %% Styling
4954 style Nginx fill:#2E8B57,color:#FFFFFF,stroke:#1a5f3a,stroke-width:2px
You can’t perform that action at this time.
0 commit comments