|
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 | +[](https://jcdc.dev/umbraco-packages/data-protection) |
7 | 8 |
|
8 | | -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. |
9 | 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 | + |
10 | 13 | Data protection keys are stored in the Umbraco database. |
11 | 14 |
|
12 | 15 | ## Quick Start |
13 | 16 |
|
14 | | -### Install |
15 | | - |
16 | | -```csharp |
17 | | -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 | +} |
18 | 34 | ``` |
19 | 35 |
|
20 | | -### Configure |
21 | 36 |
|
22 | | -```csharp |
23 | | -using Umbraco.Cms.Core.Composing; |
24 | | -using Umbraco.Cms.Core.DependencyInjection; |
| 37 | +## Contributing |
25 | 38 |
|
26 | | -namespace Project.Web; |
| 39 | +Contributions to this package are most welcome! Please visit the [Contributing](https://github.com/jcdcdev/Umbraco.Community.DataProtection/contribute) page. |
27 | 40 |
|
28 | | -public class Composer : IComposer |
29 | | -{ |
30 | | - public void Compose(IUmbracoBuilder builder) |
31 | | - { |
32 | | - builder.AddUmbracoDataProtection(); |
33 | | - } |
34 | | -} |
35 | | -``` |
| 41 | +## Acknowledgements (Thanks) |
36 | 42 |
|
37 | | -## 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) |
38 | 45 |
|
39 | | -Contributions to this package are most welcome! Please read the [Contributing Guidelines](https://github.com/jcdcdev/Umbraco.Community.DataProtection/blob/main/.github/CONTRIBUTING.md). |
40 | 46 |
|
41 | | -## Acknowledgments (thanks!) |
42 | 47 |
|
43 | | -- LottePitcher - [opinionated-package-starter](https://github.com/LottePitcher/opinionated-package-starter) |
44 | | -- jcdcdev - [jcdcdev.Umbraco.PackageTemplate](https://github.com/jcdcdev/jcdcdev.Umbraco.PackageTemplate) |
|
0 commit comments