Skip to content

Commit 16e47a1

Browse files
committed
Update signing key
1 parent e6393d3 commit 16e47a1

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

‎Services/SampleFunctions/GetAzureMapsSaSToken.cs‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ public class GetAzureMapsSaSToken()
3535
/// </remarks>
3636
private readonly DefaultAzureCredential _TokenProvider = new();
3737

38-
// The scopes for the access token
39-
private readonly string[] _Scopes =
40-
[
41-
"https://atlas.microsoft.com/.default"
42-
];
43-
4438
private ArmClient armClient;
4539

4640
[Function("GetAzureMapsSaSToken")]
@@ -88,9 +82,9 @@ private string GenerateAzureMapsSasToken(ArmClient armClient, int expiryInSecond
8882

8983
// Create the SAS token content
9084
// The MapsSigningKey is used to specify the type of signing key to use for the SAS token
91-
// In this case, we are using a managed identity
85+
// In this case, we are using primary key as the signing key
9286
MapsAccountSasContent sasContent = new MapsAccountSasContent(
93-
MapsSigningKey.ManagedIdentity,
87+
MapsSigningKey.PrimaryKey,
9488
principalId,
9589
maxRatePerSecond,
9690
start.ToString("O"),

0 commit comments

Comments
 (0)