Commit Graph

179 Commits

Author SHA1 Message Date
Nate McMaster 9b45e7f118 Use PackageLineup to manage PackageReference versions 2017-08-29 09:16:24 -07:00
Nate McMaster 28acde451e Use Directory.Build.props/targets 2017-08-29 09:14:03 -07:00
Nate McMaster 8ed38f5dcf Upgrade to xunit 2.3.0-beta4 2017-08-22 15:01:11 -07:00
Pranav K 5d6330e6b1 Pinning versions for 2.0.0 2017-08-17 14:59:12 -07:00
Ryan Brandenburg b61244dac9 Remove AssetTargetFallback 2017-06-30 12:18:59 -07:00
Kiran Challa 4a4960f2c8 Merge branch 'rel/2.0.0-preview2' into dev-gate 2017-06-15 03:40:51 -07:00
Kiran Challa 6134a11c28 Changed all references of PackageTargetFallback to AssetTargetFallback 2017-06-14 14:30:53 -07:00
Nate McMaster 5d1a523682 Make ILoggerFactory an optional service on any DI-injected services 2017-06-13 15:15:19 -07:00
Nate McMaster abf05e2856 Docker: add warning when FileSystemXmlRepository saves a key to non-volume mounted folder 2017-06-13 11:04:52 -07:00
Nate McMaster fe83e69b1a Add a startup filter which initializes the key ring before the server starts 2017-06-02 11:31:16 -07:00
Nate McMaster 285b973a5c Use IHostingEnvironment to determine application identifier
Reverses changes made in #230
2017-06-02 11:27:25 -07:00
Nate McMaster b706a75e03 Target .NET Standard 2.0
This retargets all data protection libraries to ns2.0. This means .NET
Framework applications will need to upgrade to .NET Framework 4.6.1.
This upgrade makes available API to .NET Core that was previously only
available on .NET Framework, such as encrypting keys at rest with
certificates.

New API for .NET Core users:
- IDataProtectionBuilder.ProtectKeysWithCertificate(string thumbprint)
- CertificateXmlEncryptor
- ICertificateResolver
- DataProtectionProvider
  - .Create(string applicationName, X509Certificate2 certificate)
  - .Create(DirectoryInfo keyDirectory, X509Certificate2 certificate)
  - .Create(DirectoryInfo keyDirectory, Action<IDataProtectionBuilder>
  setupAction, X509Certificate2 certificate

Other minor changes in this commit:
- Fixed samples that were using obsolete logging API
- Remove calls to api-sets, instead using kernel32. .NET Core 2.0 no
longer requires using api-sets as Nano Server now forwards kernel32
calls
- Made minor improvements to the TypeForwardingActivator
- Remove dead code an unused api baselines
- Enable more tests on macOS/Linux that previously only ran on Windows
2017-05-24 09:47:10 -07:00
Nate McMaster f70e17c138 Upgrade test framework versions 2017-05-15 16:02:04 -07:00
Chris R 129edaec7c Remove IHostingEnvironment dependency (#230) 2017-05-05 17:03:33 -07:00
Nate McMaster 4dad47eeab Ignore assembly version when activating DataProtection types from string name (#223) 2017-04-25 14:29:26 -07:00
Ajay Bhargav Baaskaran c959795a64 Creating one IAuthenticatedEncryptor per IKey 2017-04-24 10:46:33 -07:00
Ajay Bhargav Baaskaran 697745c490 [Fixes #218] Set IXmlRepository using ConfigureOptions 2017-04-05 16:08:18 -07:00
Pranav K 91406009d3 Remove net451 as a cross-compile target 2017-03-23 17:20:12 -07:00
Kiran Challa bb7b58321c Converted samples and test projects to run on netcoreapp2.0 2017-03-23 17:05:16 -07:00
Nate McMaster 6a61e10a4b Unify dependency versions and remove workarounds 2017-03-15 10:47:41 -07:00
Ajay Bhargav Baaskaran cde3b96aa7 [Fixes #134] Refactored DI support
- Refactored builder extensions and service collection extensions
- Refactored Settings/Configuration/Descriptor
- Removed ConfigurationCommon/AuthenticatedEncryptorConfigurationExtensions
- Added IAuthenticatedEncryptorFactory and implementations
- Refactored IKey to have Descriptor instead of CreateEncryptorInstance()
- Handled Repository/Encryptor special logic
- Added samples
- Updated tests
2017-03-14 19:58:46 -07:00
Doug Bunting a2a3d35852 Bump test projects up to .NET 4.5.2
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
2017-02-14 09:05:16 -08:00
Nate McMaster ab33b6afe8 Remove usage of conditional multi-targeting 2017-02-01 12:35:44 -08:00
Nate McMaster 0668a2a52e Upgrade to VS 2017 2017-01-31 16:51:24 -08:00
Nate McMaster 0e45531eb7 Remove the .Sources package from the solution file and remove the 'shared' project within the test folder 2017-01-04 17:17:33 -08:00
Pranav K b3afbc79d2 Updating to 4.4 CoreFx packages 2016-12-14 14:47:27 -08:00
Pranav K 8e4ab2c6ff Updating versions to 1.2.0-* 2016-11-09 14:17:00 -08:00
Pranav K f3a6083c9c Updating to netcoreapp1.1 2016-10-13 11:13:21 -07:00
Pranav K 01e9377eff Revert "Updating to netcoreapp1.1"
This reverts commit a2a214f698.
2016-10-12 16:08:10 -07:00
Pranav K a2a214f698 Updating to netcoreapp1.1 2016-10-12 13:44:59 -07:00
Pavel Krymets 6eacfd2679 Rename Azure.Storage to AzureStorage (#183) 2016-10-04 11:51:50 -07:00
Pranav K 3d3d6a3fba Updating partner package versions 2016-10-03 12:06:50 -07:00
Pavel Krymets 7a3fd8af33 Rename DataProtection.Azure.Blob to DataProtection.Azure.Storage (#180) 2016-09-29 15:23:42 -07:00
Pavel Krymets f7c28fe47f Fix Microsoft.AspNetCore.DataProtection.Azure.Blob dependency version in sample and test 2016-09-07 08:29:37 -07:00
Pavel Krymets 7dcbb27b6f Updated Redis repository project to support .NET Core (#175) 2016-09-06 14:10:13 -07:00
Pavel Krymets 0e210dadea Port DataProtection blob XmlRepository (#163) 2016-09-06 08:09:13 -07:00
Pavel Krymets b340b0f0f7 Add Redis IXmlRepository implementation (#173) 2016-09-02 11:56:47 -07:00
Pranav K 8691686dd8 Updating to Moq \ Castle.Core that does not require imports 2016-08-08 12:35:41 -07:00
Doug Bunting 4f30dddb14 To de-dupe, we must remove
- part of aspnet/Common#93
- use `WebEncoders` from Common repo

Also let VS have its way w/ test `.xproj` files
2016-07-12 16:24:41 -07:00
Doug Bunting 332e0a0b87 One build to rule them all
- well, at least VS and command-line builds will share output
- part of aspnet/Coherence-Signed#277
2016-07-06 22:03:23 -07:00
Pranav K 12c0f10147 Updating to RTM builds of dotnet-test-xunit and Moq 2016-06-29 16:04:56 -07:00
Pranav K 69fa821522 Updating to dev versions 2016-06-16 10:17:41 -07:00
N. Taylor Mullen ed4862dc40 Remove direct Microsoft.NETCore.Platforms dependency.
- Microsoft.NETCore.App now pulls this package in.

aspnet/Coherence-Signed#344
2016-06-13 15:28:27 -07:00
Pavel Krymets b8b0d3894c Try disabling running tests in parallel to fix DataProtectionProviderTests.System_UsesProvidedDirectoryAndCertificate failures 2016-06-09 15:54:43 -07:00
Pavel Krymets 47d3ffdddc Add activator fallback to support rc1 keys 2016-06-03 12:27:17 -07:00
BrennanConroy acb8732ffd Replace PlatformAbstractions with RuntimeInformation 2016-05-27 16:01:59 -07:00
N. Taylor Mullen cc9873ae6c Unique-ify extension types to not be ambiguous.
- Also updated test class names to reflect new extension naming.

#148
2016-05-26 10:31:13 -07:00
Pranav K e8faec59f0 Fixing schema change warnings 2016-05-18 19:09:57 -07:00
Pranav K 5abd3bf076 Fix build warnings 2016-05-02 11:27:08 -07:00
Pranav K 5e81b89378 Replace IApplicationEnvironment with IHostingEnvironment 2016-04-25 16:54:35 -07:00
Pranav K 36d84468fa Use latest build of dotnet-test-xunit 2016-04-19 14:53:54 -07:00
Pavel Krymets a20299eeeb Bring Microsoft.NETCore.Platforms dependency back 2016-04-18 16:47:48 -07:00
Pavel Krymets 6aca37fe5e Migrate tests, tools and samples to portable 2016-04-18 08:37:56 -07:00
Ajay Bhargav Baaskaran 5654310a68 [Fixes #130] Added few DataProtectionProvider.Create overloads 2016-04-06 13:10:55 -07:00
BrennanConroy f5944178e2 React to logging changes 2016-04-01 11:58:24 -07:00
Pranav K 8503e161d0 Reacting to CoreCLR package changes 2016-03-19 11:43:51 -07:00
Pranav K 6ad27bb705 * Remove xunit.runner.console reference
* Replace ExceptionAssert2.ThrowsArgumentNull with
 ExceptionAssert.ThrowsArgumentNull
2016-03-17 17:11:49 -07:00
jacalvar aa1495deb0 [Fixes #120, Fixes #121, Fixes #122] Make data protection follow the options model
* Add an IDataProtectionBuilder interface and move methods on DataProtectionConfiguration
  to extension methods on IDataProtectionBuilder.
* Make AddDataProtection return an IDataProtectionBuilder instance for further configuration.
* Make AddDataProtection take in an action with a GlobalConfigurationOptions parameter instead
  of a DataProtectionConfiguration parameter.
* Make DataProtectionProvider static
* Remove ConfigureGlobalOptions
* Change Option suffix in classes that are not actually options to Settings.
* Add extension method for configuring key management options.
* Cleanups.
2016-03-15 15:20:59 -07:00
Pranav K 64f7eff322 Fixing CI build break 2016-03-15 12:39:38 -07:00
Doug Bunting a424475be7 Remove project name from output path
- aspnet/Coherence-Signed#187
- remove `<RootNamespace>` settings but maintain other unique aspects e.g. `<DnxInvisibleContent ... />`
- in a few cases, standardize on VS version `14.0` and not something more specific
2016-03-02 16:36:52 -08:00
N. Taylor Mullen d33c2ac377 Transition to netstandard.
- dotnet5.X => netstandard1.y (where y = x-1).
- DNXCore50 => netstandardapp1.5.
- Applied the same changes to ifdefs.
2016-03-01 13:31:31 -08:00
John Luo ec5808f8b6 Updating test TFMs for custom test discovery 2016-02-18 15:02:27 -08:00
N. Taylor Mullen 3b4b3b8ca2 Remove System.Runtime dependency.
- This dependency is now pulled in transitively.
- It was temporarily re-added due to a DNX bug.
2016-02-13 22:05:25 -08:00
Brennan 314bc21413 Add missing framework assemblies 2016-02-11 13:29:58 -08:00
Kiran Challa 85b1ac37bf Enable tests to run using donet xunit test runner 2016-02-09 21:42:36 -08:00
N. Taylor Mullen 7190b704b1 Temporary build test fixes. 2016-02-06 15:08:27 -08:00
N. Taylor Mullen 42890042a3 Update shared project system.runtime dependency. 2016-02-05 17:50:53 -08:00
N. Taylor Mullen 46d7d8988e Update project.json to remove redundant System.Runtime dependency.
- This package is pulled in transitively.
2016-02-05 17:21:45 -08:00
John Luo 0d4fe3ba72 Updating to new CLI 2016-02-01 18:52:41 -08:00
Brennan 2d2e71e2c8 React to Logging API changes 2016-01-25 09:29:39 -08:00
N. Taylor Mullen 342676925f Update ASP.NET 5 versions for ASP.NET Core.
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:39:12 -08:00
N. Taylor Mullen 43dfd15a01 Rename AspNet 5 file contents.
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:32:33 -08:00
N. Taylor Mullen b87a8001fe Rename AspNet 5 folders and files.
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:16:08 -08:00
Victor Hurdugaci 4a9990a83c Build with dotnet 2016-01-06 14:28:39 -08:00
Hao Kung f073d0556b React to OptionsModel => Options 2015-12-21 14:47:58 -08:00
Pavel Krymets 29e87e314a Fix coreclr registry and file system related tests 2015-12-14 14:41:03 -08:00
Pavel Krymets df3ba7e427 Fix build 2015-12-10 09:37:19 -08:00
Pavel Krymets 0cbd683825 nix does not have %LOCALAPPDATA%, use SpecialFolder.LocalApplicationData instead 2015-12-09 16:02:05 -08:00
John Luo 79fca22b3b Reacting to verbose rename 2015-12-07 11:58:53 -08:00
Pranav K 5f44e8540d Ensure Microsoft.AspNet.DataProtection.Test.Shared can compile in dnxcore50 2015-11-23 11:31:50 -08:00
Pranav K ca3e4669dc Updating tests to use moq.netcore 2015-11-20 14:40:50 -08:00
Pranav K d09551af46 Reacting to DependencyInjection changes 2015-11-13 10:30:54 -08:00
Cesar Blum Silveira acd8d3d44d Strong name everything. 2015-11-02 15:32:44 -08:00
Pavel Krymets bc80dab39d Compiles and passes tests 2015-10-22 18:15:32 -07:00
Cesar Blum Silveira cea46e7851 Disable Microsoft.AspNet.Cryptography.KeyDerivation.Test on CoreCLR. 2015-10-16 15:49:25 -07:00
Cesar Blum Silveira 4165ee02c1 Enable some tests on CoreCLR. 2015-10-16 11:15:34 -07:00
Cesar Blum Silveira 76cbb57f9a Fix build on Linux. 2015-10-07 15:06:50 -07:00
Pranav K ad9d75a599 Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:36 -07:00
Hao Kung a4144caedd React to options 2015-08-26 16:05:51 -07:00
Kiran Challa 80bc61cbea Reacting to disposable logger provider 2015-08-13 08:48:40 -07:00
Pranav K 4342f25ece Reacting to DI changes 2015-08-11 13:04:40 -07:00
Victor Hurdugaci 81e8830c67 React to DNX renames 2015-07-29 00:30:44 -07:00
N. Taylor Mullen c6416f3520 Update LICENSE.txt and license header on files. 2015-05-01 13:45:56 -07:00
Brennan 7ecbee2f7d Interfaces->Abstractions 2015-04-29 17:21:04 -07:00
Kiran Challa e3f4e51c0d Reacting to ILogger api changes 2015-04-04 00:44:36 -07:00
Doug Bunting 1f97db54fa Merge remote-tracking branch 'origin/release' into dev 2015-04-03 11:36:31 -07:00
N. Taylor Mullen ec61315412 Update project.json, code=>compile. Also remove **/*.cs and **/*.vs from compile section. These are now defaulted to on. 2015-04-02 16:15:25 -07:00
Doug Bunting 19567ad39d Update .xproj files for Microsoft.Web.AspNet.* -> Microsoft.DNX.* rename 2015-04-02 13:49:24 -07:00
Levi B d2def94712 Reliability: Tweak comparison in key revocation checks 2015-03-18 15:15:58 -07:00
Levi B ca840d3711 Code cleanup in KeyDerivation
- Rename PRF members to be HMAC functions (which is technically correct)
- Use NotNullAttribute where possible
2015-03-17 22:03:43 -07:00