|
1 | 1 | # Umbraco.Community.DataProtection |
2 | 2 |
|
3 | | -[](https://github.com/jcdcdev/Umbraco.Community.DataProtection/tree/main?tab=readme-ov-file#quick-start) |
4 | | -[](https://marketplace.umbraco.com/package/umbraco.community.dataprotection) |
5 | | -[](https://github.com/jcdcdev/Umbraco.Community.DataProtection/blob/main/LICENSE) |
6 | | -[](https://www.nuget.org/packages/Umbraco.Community.DataProtection/) |
| 3 | +[](https://github.com/jcdcdev/Umbraco.Community.DataProtection?tab=readme-ov-file#quick-start) |
| 4 | +[](https://marketplace.umbraco.com/package/Umbraco.Community.DataProtection) |
| 5 | +[](https://github.com/jcdcdev/Umbraco.Community.DataProtection?tab=MIT-1-ov-file) |
| 6 | +[](https://www.nuget.org/packages/Umbraco.Community.DataProtection) |
7 | 7 | [](https://jcdc.dev/umbraco-packages/data-protection) |
8 | 8 |
|
9 | | -Simple [ASP.NET Core Data Protection](https://learn.microsoft.com/en-us/aspnet/core/security/data-protection/introduction?view=aspnetcore-8.0) for Umbraco CMS. |
10 | 9 |
|
| 10 | + |
| 11 | +Simple [ASP.NET Core Data Protection](https://learn.microsoft.com/en-us/aspnet/core/security/data-protection/introduction) for Umbraco CMS. |
| 12 | + |
11 | 13 | Data protection keys are stored in the Umbraco database. |
12 | 14 |
|
13 | 15 | ## Quick Start |
14 | 16 |
|
15 | | -### Install |
16 | | - |
17 | | -```csharp |
18 | | -dotnet add package Umbraco.Community.DataProtection |
| 17 | +```csharp |
| 18 | +dotnet add package Umbraco.Community.DataProtection |
| 19 | +``` |
| 20 | + |
| 21 | +```csharp title="Composer.cs" |
| 22 | +using Umbraco.Cms.Core.Composing; |
| 23 | +using Umbraco.Cms.Core.DependencyInjection; |
| 24 | + |
| 25 | +namespace Project.Web; |
| 26 | + |
| 27 | +public class Composer : IComposer |
| 28 | +{ |
| 29 | + public void Compose(IUmbracoBuilder builder) |
| 30 | + { |
| 31 | + builder.AddUmbracoDataProtection(); |
| 32 | + } |
| 33 | +} |
19 | 34 | ``` |
20 | 35 |
|
21 | | -### Configure |
22 | 36 |
|
23 | | -```csharp |
24 | | -using Umbraco.Cms.Core.Composing; |
25 | | -using Umbraco.Cms.Core.DependencyInjection; |
| 37 | +## Contributing |
26 | 38 |
|
27 | | -namespace Project.Web; |
| 39 | +Contributions to this package are most welcome! Please visit the [Contributing](https://github.com/jcdcdev/Umbraco.Community.DataProtection/contribute) page. |
28 | 40 |
|
29 | | -public class Composer : IComposer |
30 | | -{ |
31 | | - public void Compose(IUmbracoBuilder builder) |
32 | | - { |
33 | | - builder.AddUmbracoDataProtection(); |
34 | | - } |
35 | | -} |
36 | | -``` |
| 41 | +## Acknowledgements (Thanks) |
37 | 42 |
|
38 | | -## Contributing |
| 43 | +- LottePitcher - [opinionated-package-starter](https://github.com/LottePitcher/opinionated-package-starter) |
| 44 | +- jcdcdev - [jcdcdev.Umbraco.PackageTemplate](https://github.com/jcdcdev/jcdcdev.Umbraco.PackageTemplate) |
39 | 45 |
|
40 | | -Contributions to this package are most welcome! Please read the [Contributing Guidelines](https://github.com/jcdcdev/Umbraco.Community.DataProtection/blob/main/.github/CONTRIBUTING.md). |
41 | 46 |
|
42 | | -## Acknowledgments (thanks!) |
43 | 47 |
|
44 | | -- LottePitcher - [opinionated-package-starter](https://github.com/LottePitcher/opinionated-package-starter) |
45 | | -- jcdcdev - [jcdcdev.Umbraco.PackageTemplate](https://github.com/jcdcdev/jcdcdev.Umbraco.PackageTemplate) |
|
0 commit comments