|
1 | | -<!doctype html> |
2 | | -<html lang="en" class="h-100"> |
3 | | - |
4 | | -<head> |
5 | | - <meta charset="utf-8"> |
6 | | - <meta name="viewport" content="width=device-width, initial-scale=1"> |
7 | | - <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" |
8 | | - integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous"> |
9 | | - <title>404</title> |
10 | | -</head> |
11 | | - |
12 | | -<body class="h-100"> |
13 | | - <div class="d-flex align-items-center justify-content-center h-100"> |
14 | | - <div class=""> |
15 | | - <h1>404 Not Found</h1> |
16 | | - <p> Sorry, the page you are looking for could not be found.</p> |
17 | | - </div> |
18 | | - </div> |
19 | | - |
20 | | - <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous" type="5e2267490ed1251fbb852c0e-text/javascript"></script> |
21 | | - <script type="5e2267490ed1251fbb852c0e-text/javascript"> |
22 | | - const darkModeMediaQuery = window.matchMedia('(prefers-color-scheme: dark)'); |
23 | | - |
24 | | - if (darkModeMediaQuery.matches) { |
25 | | - document.documentElement.setAttribute('data-bs-theme', 'dark'); |
26 | | - } else { |
27 | | - document.documentElement.setAttribute('data-bs-theme', 'light'); |
28 | | - } |
29 | | - |
30 | | - darkModeMediaQuery.addEventListener('change', (event) => { |
31 | | - if (event.matches) { |
32 | | - document.documentElement.setAttribute('data-bs-theme', 'dark'); |
33 | | - } else { |
34 | | - document.documentElement.setAttribute('data-bs-theme', 'light'); |
35 | | - } |
36 | | - }); |
37 | | - </script> |
38 | | -<script src="/cdn-cgi/scripts/7d0fa10a/cloudflare-static/rocket-loader.min.js" data-cf-settings="5e2267490ed1251fbb852c0e-|49" defer></script></body> |
39 | | - |
40 | | -</html> |
| 1 | +# Umbraco.Community.DataProtection |
| 2 | + |
| 3 | +[](https://marketplace.umbraco.com/package/Umbraco.Community.DataProtection) |
| 4 | +[](https://github.com/jcdcdev/Umbraco.Community.DataProtection?tab=MIT-1-ov-file) |
| 5 | +[](https://www.nuget.org/packages/Umbraco.Community.DataProtection) |
| 6 | +[](https://jcdc.dev/umbraco-packages/data-protection) |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | +Simple [ASP.NET Core Data Protection](https://learn.microsoft.com/en-us/aspnet/core/security/data-protection/introduction) for Umbraco CMS. |
| 11 | + |
| 12 | +Data protection keys are stored in the Umbraco database. |
| 13 | + |
| 14 | +## Quick Start |
| 15 | + |
| 16 | +```csharp |
| 17 | +dotnet add package Umbraco.Community.DataProtection |
| 18 | +``` |
| 19 | + |
| 20 | +```csharp title="Composer.cs" |
| 21 | +using Umbraco.Cms.Core.Composing; |
| 22 | +using Umbraco.Cms.Core.DependencyInjection; |
| 23 | + |
| 24 | +namespace Project.Web; |
| 25 | + |
| 26 | +public class Composer : IComposer |
| 27 | +{ |
| 28 | + public void Compose(IUmbracoBuilder builder) |
| 29 | + { |
| 30 | + builder.AddUmbracoDataProtection(); |
| 31 | + } |
| 32 | +} |
| 33 | +``` |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | +## Contributing |
| 38 | + |
| 39 | +Contributions to this package are most welcome! Please visit the [Contributing](https://github.com/jcdcdev/Umbraco.Community.DataProtection/contribute) page. |
| 40 | + |
| 41 | +## Acknowledgements (Thanks) |
| 42 | + |
| 43 | +- LottePitcher - [opinionated-package-starter](https://github.com/LottePitcher/opinionated-package-starter) |
| 44 | +- jcdcdev - [jcdcdev.Umbraco.PackageTemplate](https://github.com/jcdcdev/jcdcdev.Umbraco.PackageTemplate) |
| 45 | + |
| 46 | + |
| 47 | + |
0 commit comments