From 4b8d7a05e04edf442b74236c4325c8e269a1a82d Mon Sep 17 00:00:00 2001
From: Scott Addie <10702007+scottaddie@users.noreply.github.com>
Date: Thu, 18 Jul 2024 17:50:26 -0500
Subject: [PATCH] Reformat DefaultAzureCredential flow chart (#5829)
---
.../DefaultAzureCredentialAuthFlow.md | 21 +++++++++++++++----
.../DefaultAzureCredentialAuthFlow.svg | 2 +-
2 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/sdk/identity/azure-identity/img/mermaidjs/DefaultAzureCredentialAuthFlow.md b/sdk/identity/azure-identity/img/mermaidjs/DefaultAzureCredentialAuthFlow.md
index 5ef482346..ca5657a46 100644
--- a/sdk/identity/azure-identity/img/mermaidjs/DefaultAzureCredentialAuthFlow.md
+++ b/sdk/identity/azure-identity/img/mermaidjs/DefaultAzureCredentialAuthFlow.md
@@ -1,18 +1,31 @@
```mermaid
%% STEPS TO GENERATE IMAGE
%% =======================
-%% 1. Install mermaid CLI (see https://github.com/mermaid-js/mermaid-cli/blob/master/README.md)
-%% v10.0.2 is known good for our process. npm install -g @mermaid-js/mermaid-cli@10.0.2
+%% 1. Install mermaid CLI v10.9.1 (see https://github.com/mermaid-js/mermaid-cli/blob/master/README.md):
+%% npm i -g @mermaid-js/mermaid-cli@10.9.1
%% 2. Run command: mmdc -i DefaultAzureCredentialAuthFlow.md -o DefaultAzureCredentialAuthFlow.svg
-flowchart LR;
- A(Environment):::deployed ==> B(Workload Identity):::deployed ==> C(Azure CLI):::developer ==> D(Managed Identity):::deployed;
+%%{
+ init: {
+ 'theme': 'base',
+ 'themeVariables': {
+ 'tertiaryBorderColor': '#fff',
+ 'tertiaryColor': '#fff'
+ }
+ }
+}%%
+flowchart LR;
subgraph CREDENTIAL TYPES;
direction LR;
Deployed(Deployed service):::deployed ~~~ Developer(Developer):::developer;
end;
+ subgraph CREDENTIALS;
+ direction LR;
+ A(Environment):::deployed ==> B(Workload Identity):::deployed ==> C(Azure CLI):::developer ==> D(Managed Identity):::deployed;
+ end;
+
%% Define styles for credential type boxes
classDef deployed fill:#95C37E, stroke:#71AD4C;
classDef developer fill:#F5AF6F, stroke:#EB7C39;
diff --git a/sdk/identity/azure-identity/img/mermaidjs/DefaultAzureCredentialAuthFlow.svg b/sdk/identity/azure-identity/img/mermaidjs/DefaultAzureCredentialAuthFlow.svg
index da0042e11..1c33c1738 100644
--- a/sdk/identity/azure-identity/img/mermaidjs/DefaultAzureCredentialAuthFlow.svg
+++ b/sdk/identity/azure-identity/img/mermaidjs/DefaultAzureCredentialAuthFlow.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file