React to renames + cleanup
This commit is contained in:
parent
73f1c6ac46
commit
0c8cbdab31
|
|
@ -3,7 +3,7 @@
|
|||
"dependencies": {
|
||||
"Microsoft.Framework.ConfigurationModel": "0.1-alpha-*",
|
||||
"Microsoft.AspNet.DependencyInjection": "0.1-alpha-*",
|
||||
"Microsoft.AspNet.Identity": "0.1-alpha-*",
|
||||
"Microsoft.AspNet.Identity": "",
|
||||
"Microsoft.Data.Entity": "0.1-alpha-*",
|
||||
"Microsoft.Data.Entity.Relational": "0.1-alpha-*",
|
||||
"Microsoft.Data.Entity.SqlServer": "0.1-alpha-*",
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
"System.Runtime": "",
|
||||
"System.Collections": ""
|
||||
}
|
||||
},
|
||||
},
|
||||
"k10": {
|
||||
"dependencies": {
|
||||
"System.Collections": "4.0.0.0",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"version": "0.1-alpha-*",
|
||||
"dependencies": {
|
||||
"Microsoft.AspNet.Identity": "0.1-alpha-*",
|
||||
"Microsoft.AspNet.Identity": "",
|
||||
"Microsoft.AspNet.DependencyInjection" : "0.1-alpha-*",
|
||||
"System.Security.Claims": "0.1-alpha-*"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -15,12 +15,12 @@
|
|||
// See the Apache 2 License for the specific language governing
|
||||
// permissions and limitations under the License.
|
||||
|
||||
using Microsoft.AspNet.Abstractions;
|
||||
using Microsoft.AspNet.Abstractions.Security;
|
||||
using Microsoft.AspNet.DependencyInjection;
|
||||
using System;
|
||||
using System.Security.Claims;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNet.Http;
|
||||
using Microsoft.AspNet.Http.Security;
|
||||
|
||||
namespace Microsoft.AspNet.Identity.Security
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@
|
|||
"dependencies": {
|
||||
"Microsoft.AspNet.DependencyInjection" : "0.1-alpha-*",
|
||||
"System.Security.Claims" : "0.1-alpha-*",
|
||||
"Microsoft.AspNet.Abstractions" : "0.1-alpha-*",
|
||||
"Microsoft.AspNet.Identity" : "0.1-alpha-*",
|
||||
"Microsoft.AspNet.Http" : "0.1-alpha-*",
|
||||
"Microsoft.AspNet.Identity" : "",
|
||||
"Microsoft.AspNet.Security.DataProtection" : "0.1-alpha-*"
|
||||
},
|
||||
"configurations": {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ using System;
|
|||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNet.DependencyInjection;
|
||||
using Microsoft.AspNet.DependencyInjection.Fallback;
|
||||
using Microsoft.AspNet.Identity.Test;
|
||||
using Microsoft.Data.Entity;
|
||||
using Microsoft.Data.Entity.InMemory;
|
||||
using Xunit;
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@ using Microsoft.AspNet.DependencyInjection;
|
|||
using Microsoft.AspNet.DependencyInjection.Fallback;
|
||||
using Microsoft.AspNet.Http;
|
||||
using Microsoft.AspNet.Identity.Entity;
|
||||
using Microsoft.AspNet.Identity.Test;
|
||||
using Microsoft.AspNet.PipelineCore;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Data.Entity;
|
||||
using Xunit;
|
||||
using Microsoft.AspNet.Builder;
|
||||
|
||||
namespace Microsoft.AspNet.Identity.Entity.Test
|
||||
{
|
||||
|
|
@ -36,7 +36,7 @@ namespace Microsoft.AspNet.Identity.Entity.Test
|
|||
[Fact]
|
||||
public void CanCustomizeIdentityOptions()
|
||||
{
|
||||
IBuilder builder = new Builder(new ServiceCollection().BuildServiceProvider());
|
||||
IBuilder builder = new Microsoft.AspNet.Builder.Builder(new ServiceCollection().BuildServiceProvider());
|
||||
builder.UseServices(services => {
|
||||
services.AddIdentity<IdentityUser>(identityServices => { });
|
||||
services.AddSetup<PasswordsNegativeLengthSetup>();
|
||||
|
|
@ -59,7 +59,7 @@ namespace Microsoft.AspNet.Identity.Entity.Test
|
|||
[Fact]
|
||||
public void CanSetupIdentityOptions()
|
||||
{
|
||||
IBuilder app = new Builder(new ServiceCollection().BuildServiceProvider());
|
||||
IBuilder app = new Microsoft.AspNet.Builder.Builder(new ServiceCollection().BuildServiceProvider());
|
||||
app.UseServices(services => services.AddIdentity<IdentityUser>(identityServices => identityServices.SetupOptions(options => options.User.RequireUniqueEmail = true)));
|
||||
|
||||
var optionsGetter = app.ApplicationServices.GetService<IOptionsAccessor<IdentityOptions>>();
|
||||
|
|
@ -72,7 +72,7 @@ namespace Microsoft.AspNet.Identity.Entity.Test
|
|||
[Fact]
|
||||
public async Task EnsureStartupUsageWorks()
|
||||
{
|
||||
IBuilder builder = new Builder(new ServiceCollection().BuildServiceProvider());
|
||||
IBuilder builder = new Microsoft.AspNet.Builder.Builder(new ServiceCollection().BuildServiceProvider());
|
||||
|
||||
//builder.UseServices(services => services.AddIdentity<ApplicationUser>(s =>
|
||||
// s.AddEntity<ApplicationDbContext>()
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@
|
|||
|
||||
using Microsoft.AspNet.DependencyInjection;
|
||||
using Microsoft.AspNet.DependencyInjection.Fallback;
|
||||
using Microsoft.AspNet.Identity.Test;
|
||||
using Microsoft.AspNet.Testing;
|
||||
using Microsoft.Data.Entity;
|
||||
using Microsoft.Data.Entity.Metadata;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
{
|
||||
"version": "0.1-alpha-*",
|
||||
"dependencies": {
|
||||
"Microsoft.AspNet.Abstractions": "0.1-alpha-*",
|
||||
"Microsoft.AspNet.Http": "0.1-alpha-*",
|
||||
"Microsoft.Framework.ConfigurationModel": "0.1-alpha-*",
|
||||
"Microsoft.AspNet.DependencyInjection": "0.1-alpha-*",
|
||||
"Microsoft.AspNet.Identity": "",
|
||||
"Microsoft.AspNet.Identity.Entity": "",
|
||||
"Microsoft.AspNet.PipelineCore": "0.1-alpha-*",
|
||||
"Microsoft.AspNet.Logging": "0.1-alpha-*",
|
||||
|
|
@ -12,12 +11,6 @@
|
|||
"Microsoft.AspNet.Security.DataProtection": "0.1-alpha-*",
|
||||
"Microsoft.AspNet.Testing": "0.1-alpha-*",
|
||||
"Microsoft.Bcl.Immutable": "1.1.18-beta-*",
|
||||
"Microsoft.Data.Entity": "0.1-alpha-*",
|
||||
"Microsoft.Data.Entity.InMemory": "0.1-alpha-*",
|
||||
"Microsoft.Data.Entity.Migrations": "0.1-alpha-*",
|
||||
"Microsoft.Data.Entity.Relational": "0.1-alpha-*",
|
||||
"Microsoft.Data.Entity.SqlServer": "0.1-alpha-*",
|
||||
"Remotion.Linq": "1.15.13.0",
|
||||
"System.Security.Claims": "0.1-alpha-*",
|
||||
"Xunit.KRunner": "0.1-alpha-*",
|
||||
"xunit.abstractions": "2.0.0-aspnet-*",
|
||||
|
|
@ -25,7 +18,6 @@
|
|||
"xunit.core": "2.0.0-aspnet-*",
|
||||
"xunit.execution": "2.0.0-aspnet-*"
|
||||
},
|
||||
"code": "**\\*.cs;..\\Shared\\*.cs",
|
||||
"configurations": {
|
||||
"net45": {
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -25,8 +25,5 @@
|
|||
<Compile Include="InMemoryStoreTest.cs" />
|
||||
<Compile Include="StartupTest.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VSToolsPath)\ProjectK\Microsoft.Web.ProjectK.targets" Condition="'$(VSToolsPath)' != ''" />
|
||||
</Project>
|
||||
|
|
@ -15,13 +15,14 @@
|
|||
// See the Apache 2 License for the specific language governing
|
||||
// permissions and limitations under the License.
|
||||
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNet.Builder;
|
||||
using Microsoft.AspNet.DependencyInjection;
|
||||
using Microsoft.AspNet.DependencyInjection.Fallback;
|
||||
using Microsoft.AspNet.Http;
|
||||
using Microsoft.AspNet.Identity.Test;
|
||||
using Microsoft.AspNet.PipelineCore;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Xunit;
|
||||
|
||||
namespace Microsoft.AspNet.Identity.InMemory.Test
|
||||
|
|
@ -47,7 +48,7 @@ namespace Microsoft.AspNet.Identity.InMemory.Test
|
|||
[Fact]
|
||||
public void CanCustomizeIdentityOptions()
|
||||
{
|
||||
IBuilder builder = new Builder(new ServiceCollection().BuildServiceProvider());
|
||||
IBuilder builder = new Microsoft.AspNet.Builder.Builder(new ServiceCollection().BuildServiceProvider());
|
||||
builder.UseServices(services => {
|
||||
services.AddIdentity<IdentityUser>(identityServices => { });
|
||||
services.AddSetup<PasswordsNegativeLengthSetup>();
|
||||
|
|
@ -70,7 +71,7 @@ namespace Microsoft.AspNet.Identity.InMemory.Test
|
|||
[Fact]
|
||||
public void CanSetupIdentityOptions()
|
||||
{
|
||||
IBuilder app = new Builder(new ServiceCollection().BuildServiceProvider());
|
||||
IBuilder app = new Microsoft.AspNet.Builder.Builder(new ServiceCollection().BuildServiceProvider());
|
||||
app.UseServices(services => services.AddIdentity<IdentityUser>(identityServices => identityServices.SetupOptions(options => options.User.RequireUniqueEmail = true)));
|
||||
|
||||
var optionsGetter = app.ApplicationServices.GetService<IOptionsAccessor<IdentityOptions>>();
|
||||
|
|
@ -83,7 +84,7 @@ namespace Microsoft.AspNet.Identity.InMemory.Test
|
|||
[Fact]
|
||||
public async Task EnsureStartupUsageWorks()
|
||||
{
|
||||
IBuilder builder = new Builder(new ServiceCollection().BuildServiceProvider());
|
||||
IBuilder builder = new Microsoft.AspNet.Builder.Builder(new ServiceCollection().BuildServiceProvider());
|
||||
|
||||
//builder.UseServices(services => services.AddIdentity<ApplicationUser>(s =>
|
||||
// s.AddEntity<ApplicationDbContext>()
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"version": "0.1-alpha-*",
|
||||
"dependencies": {
|
||||
"Microsoft.AspNet.Abstractions" : "0.1-alpha-*",
|
||||
"Microsoft.AspNet.Http" : "0.1-alpha-*",
|
||||
"Microsoft.Framework.ConfigurationModel": "0.1-alpha-*",
|
||||
"Microsoft.AspNet.DependencyInjection" : "0.1-alpha-*",
|
||||
"Microsoft.AspNet.Identity" : "0.1-alpha-*",
|
||||
|
|
|
|||
|
|
@ -25,8 +25,5 @@
|
|||
<Compile Include="SignInManagerTest.cs" />
|
||||
<Compile Include="TestUser.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VSToolsPath)\ProjectK\Microsoft.Web.ProjectK.targets" Condition="'$(VSToolsPath)' != ''" />
|
||||
</Project>
|
||||
|
|
@ -31,6 +31,7 @@ using Moq;
|
|||
using System.Security.Claims;
|
||||
using System.Threading.Tasks;
|
||||
using Xunit;
|
||||
using Microsoft.AspNet.Builder;
|
||||
|
||||
namespace Microsoft.AspNet.Identity.Security.Test
|
||||
{
|
||||
|
|
@ -42,7 +43,7 @@ namespace Microsoft.AspNet.Identity.Security.Test
|
|||
[InlineData(false)]
|
||||
public async Task VerifyAccountControllerSignIn(bool isPersistent)
|
||||
{
|
||||
IBuilder app = new Builder(new ServiceCollection().BuildServiceProvider());
|
||||
IBuilder app = new Microsoft.AspNet.Builder.Builder(new ServiceCollection().BuildServiceProvider());
|
||||
app.UseCookieAuthentication(new CookieAuthenticationOptions
|
||||
{
|
||||
AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"version": "0.1-alpha-*",
|
||||
"dependencies": {
|
||||
"Microsoft.AspNet.Abstractions" : "0.1-alpha-*",
|
||||
"Microsoft.AspNet.Http" : "0.1-alpha-*",
|
||||
"Microsoft.Framework.ConfigurationModel": "0.1-alpha-*",
|
||||
"Microsoft.AspNet.DependencyInjection" : "0.1-alpha-*",
|
||||
"Microsoft.AspNet.Identity" : "0.1-alpha-*",
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ namespace Microsoft.AspNet.Identity.Test
|
|||
{"identity:password:RequireDigit", "false"},
|
||||
{"identity:password:RequireLowerCase", "false"}
|
||||
};
|
||||
var config = new ConfigurationModel.Configuration { new MemoryConfigurationSource(dic) };
|
||||
var config = new Configuration { new MemoryConfigurationSource(dic) };
|
||||
Assert.Equal(roleClaimType, config.Get("identity:claimtype:role"));
|
||||
var options = new IdentityOptions(config);
|
||||
Assert.Equal(roleClaimType, options.ClaimType.Role);
|
||||
|
|
@ -91,7 +91,7 @@ namespace Microsoft.AspNet.Identity.Test
|
|||
{"userid", useridClaimType},
|
||||
{"securitystamp", securityStampClaimType}
|
||||
};
|
||||
var config = new ConfigurationModel.Configuration {new MemoryConfigurationSource(dic)};
|
||||
var config = new Configuration {new MemoryConfigurationSource(dic)};
|
||||
Assert.Equal(roleClaimType, config.Get("role"));
|
||||
var options = new ClaimTypeOptions(config);
|
||||
Assert.Equal(roleClaimType, options.Role);
|
||||
|
|
@ -111,7 +111,7 @@ namespace Microsoft.AspNet.Identity.Test
|
|||
{"RequireDigit", "false"},
|
||||
{"RequireLowerCase", "false"}
|
||||
};
|
||||
var config = new ConfigurationModel.Configuration { new MemoryConfigurationSource(dic) };
|
||||
var config = new Configuration { new MemoryConfigurationSource(dic) };
|
||||
var options = new PasswordOptions(config);
|
||||
Assert.False(options.RequireDigit);
|
||||
Assert.False(options.RequireLowercase);
|
||||
|
|
|
|||
|
|
@ -23,20 +23,15 @@
|
|||
<ItemGroup>
|
||||
<Compile Include="ClaimsIdentityFactoryTest.cs" />
|
||||
<Compile Include="IdentityBuilderTest.cs" />
|
||||
<Compile Include="IdentityResultAssert.cs" />
|
||||
<Compile Include="IdentityOptionsTest.cs" />
|
||||
<Compile Include="IdentityResultTest.cs" />
|
||||
<Compile Include="NoopRoleStore.cs" />
|
||||
<Compile Include="NoopUserStore.cs" />
|
||||
<Compile Include="PasswordValidatorTest.cs" />
|
||||
<Compile Include="RoleManagerTest.cs" />
|
||||
<Compile Include="RoleValidatorTest.cs" />
|
||||
<Compile Include="TestRole.cs" />
|
||||
<Compile Include="TestUser.cs" />
|
||||
<Compile Include="UserManagerTest.cs" />
|
||||
<Compile Include="UserValidatorTest.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VSToolsPath)\ProjectK\Microsoft.Web.ProjectK.targets" Condition="'$(VSToolsPath)' != ''" />
|
||||
</Project>
|
||||
Loading…
Reference in New Issue