Skip to content

Commit 60dfcc8

Browse files
Merge pull request #57 from IowaComputerGurus/feature/system-wide-updates
Feature/system wide updates
2 parents ede963b + 8ea5344 commit 60dfcc8

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This project provides a number of helpful wrappers around the Microsoft Azure St
66

77
## NuGet Status (ICG.AspNetCore.Utilities.CloudStorage)
88

9-
![](https://img.shields.io/nuget/v/icg.aspnetcore.utilities.cloudstorage.svg) ![](https://img.shields.io/nuget/dt/icg.aspnetcore.utilities.cloudstorage.svg) |
9+
![](https://img.shields.io/nuget/v/icg.aspnetcore.utilities.cloudstorage.svg) ![](https://img.shields.io/nuget/dt/icg.aspnetcore.utilities.cloudstorage.svg)
1010

1111
## SonarCloud Analysis
1212

@@ -46,7 +46,11 @@ Lastly, before using you will need to configure your storage options. An exampl
4646
}
4747
```
4848

49-
NOTE: Root client path could be https://youraccount.blob.core.windows.net or if you have configured a CDN your CDN path. This is what will be used to provide the return path of uploaded objects
49+
> [!NOTE]
50+
> Root client path could be https://youraccount.blob.core.windows.net or if you have configured a CDN your CDN path. This is what will be used to provide the return path of uploaded objects
51+
52+
> [!WARNING]
53+
> Be sure to consider security of these credentials, this library fully supports `IOptions` so you can utilize environment variables, the `appsettings.json` file or any other mechanism that injects values to Configuration
5054
5155
### Included Features
5256

src/AspNetCore.Utilities.CloudStorage.Tests/AspNetCore.Utilities.CloudStorage.Tests.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
</PropertyGroup>
1616

1717
<ItemGroup>
18-
<PackageReference Include="coverlet.collector" Version="3.1.2">
18+
<PackageReference Include="coverlet.collector" Version="6.0.2">
1919
<PrivateAssets>all</PrivateAssets>
2020
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2121
</PackageReference>
22-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
23-
<PackageReference Include="Moq" Version="4.16.1" />
24-
<PackageReference Include="xunit" Version="2.4.1" />
25-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
22+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
23+
<PackageReference Include="Moq" Version="4.20.72" />
24+
<PackageReference Include="xunit" Version="2.9.2" />
25+
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
2626
<PrivateAssets>all</PrivateAssets>
2727
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2828
</PackageReference>

src/AspNetCore.Utilities.CloudStorage/AspNetCore.Utilities.CloudStorage.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<PackageId>ICG.AspNetCore.Utilities.CloudStorage</PackageId>
55
<Title>AspNetCore Utilities CloudStorage</Title>
66
<Description>A collection of utilities designed to aid in the storage of files to cloud storage locations.</Description>
7-
<Copyright>Copyright 2021, IowaComputerGurus, Subject to the MIT License</Copyright>
7+
<Copyright>Copyright 2024, IowaComputerGurus, Subject to the MIT License</Copyright>
88
<PackageProjectUrl>https://github.com/IowaComputerGurus/aspnetcore.utilities.cloudstorage</PackageProjectUrl>
99
<PackageTags>aspnetcore;azure-storage;cloudstorage</PackageTags>
1010
<RepositoryUrl>https://github.com/IowaComputerGurus/aspnetcore.utilities.cloudstorage</RepositoryUrl>
@@ -37,10 +37,10 @@
3737
</PropertyGroup>
3838

3939
<ItemGroup>
40-
<PackageReference Include="Azure.Storage.Blobs" Version="12.10.0" />
41-
<PackageReference Include="ICG.NetCore.Utilities" Version="6.0.0" />
42-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
43-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
40+
<PackageReference Include="Azure.Storage.Blobs" Version="12.22.2" />
41+
<PackageReference Include="ICG.NetCore.Utilities" Version="6.2.0" />
42+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
43+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
4444
<PrivateAssets>all</PrivateAssets>
4545
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4646
</PackageReference>

src/AspNetCore.Utilities.CloudStorage/AzureCloudStorageProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ public string CreateSASUrl(string container, string objectName, int tokenDuratio
372372
BlobContainerName = container,
373373
BlobName = objectName,
374374
Resource = "b",
375-
ExpiresOn = DateTimeOffset.UtcNow.AddHours(1)
375+
ExpiresOn = DateTimeOffset.UtcNow.AddMinutes(tokenDuration)
376376
};
377377
tokenBuilder.SetPermissions(BlobSasPermissions.Read);
378378
return blobClient.GenerateSasUri(tokenBuilder).ToString();

0 commit comments

Comments
 (0)