Skip to content

Commit b85f311

Browse files
Patch 1 replace secrets in examples (#3509)
* Mask secret values in Add-MgApplicationPassword.md Replaced sensitive SecretText values with placeholder '<secret here>' for security. * Mask secret values in Add-MgBetaApplicationPassword.md Replaced sensitive SecretText values with placeholder '<secret here>' for security. * Change secretText to use placeholder Updated secretText placeholder in Add-MgServicePrincipalKey example. * Change secretText to a placeholder in documentation Updated the secretText placeholder in the example.
1 parent 5db8dfe commit b85f311

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/Applications/beta/examples/Add-MgBetaApplicationKey.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ $params = @{
3232
key = [System.Text.Encoding]::ASCII.GetBytes("MIIDYDCCAki...")
3333
}
3434
passwordCredential = @{
35-
secretText = "MKTr0w1..."
35+
secretText = "<secret here>"
3636
}
3737
proof = "eyJ0eXAiOiJ..."
3838
}

src/Applications/beta/examples/Add-MgBetaApplicationPassword.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ DisplayName : Created in PowerShell
1919
EndDateTime : 26/11/2022 12:03:31 pm
2020
Hint : Q_e
2121
KeyId : c82bb763-741b-4575-9d9d-df7e766f6999
22-
SecretText : Q_e8Q~ZDWJD.bkgajbREp-VFFUayCuEk8b1hDcr9
22+
SecretText : <secret here>
2323
StartDateTime : 26/5/2022 1:03:31 pm
2424
AdditionalProperties : {[@odata.context,
2525
https://graph.microsoft.com/v1.0/$metadata#microsoft.graph.passwordCredential]}
@@ -52,7 +52,7 @@ DisplayName : Created in PowerShell
5252
EndDateTime : 26/11/2022 1:00:00 pm
5353
Hint : TiA
5454
KeyId : 082bf20f-63d6-4970-bb4e-55e504f50d8b
55-
SecretText : TiA8Q~Zs7ej1cGtlW0qnmuFi~JlxXTZew_tU1bGA
55+
SecretText : <secret here>
5656
StartDateTime : 26/5/2022 2:00:00 pm
5757
AdditionalProperties : {[@odata.context,
5858
https://graph.microsoft.com/v1.0/$metadata#microsoft.graph.passwordCredential]}

src/Applications/v1.0/examples/Add-MgApplicationPassword.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ DisplayName : Created in PowerShell
1919
EndDateTime : 26/11/2022 12:03:31 pm
2020
Hint : Q_e
2121
KeyId : c82bb763-741b-4575-9d9d-df7e766f6999
22-
SecretText : Q_e8Q~ZDWJD.bkgajbREp-VFFUayCuEk8b1hDcr9
22+
SecretText : <secret here>
2323
StartDateTime : 26/5/2022 1:03:31 pm
2424
AdditionalProperties : {[@odata.context,
2525
https://graph.microsoft.com/v1.0/$metadata#microsoft.graph.passwordCredential]}
@@ -52,7 +52,7 @@ DisplayName : Created in PowerShell
5252
EndDateTime : 26/11/2022 1:00:00 pm
5353
Hint : TiA
5454
KeyId : 082bf20f-63d6-4970-bb4e-55e504f50d8b
55-
SecretText : TiA8Q~Zs7ej1cGtlW0qnmuFi~JlxXTZew_tU1bGA
55+
SecretText : <secret here>
5656
StartDateTime : 26/5/2022 2:00:00 pm
5757
AdditionalProperties : {[@odata.context,
5858
https://graph.microsoft.com/v1.0/$metadata#microsoft.graph.passwordCredential]}

src/Applications/v1.0/examples/Add-MgServicePrincipalKey.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ $params = @{
3232
key = [System.Text.Encoding]::ASCII.GetBytes("MIIDYDCCAki...")
3333
}
3434
passwordCredential = @{
35-
secretText = "MKTr0w1..."
35+
secretText = "<secret here>"
3636
}
3737
proof = "eyJ0eXAiOiJ..."
3838
}

0 commit comments

Comments
 (0)