Skip to content

Commit

Permalink
+ git rid of the nuspec, and generate the package on build to avoid d…
Browse files Browse the repository at this point in the history
…iscrepancies on package content/platform support in the future.

+ remove browser link refs as it's useless.
+ remove ps scripts used to pack, since we pack on build now.
+ update license
+ remove lib folder as it's now unused
  • Loading branch information
Alexandre SPIESER committed Mar 18, 2021
1 parent 35ab8de commit a9903b1
Show file tree
Hide file tree
Showing 18 changed files with 28 additions and 10,835 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 Alexandre SPIESER
Copyright (c) 2021 Alexandre SPIESER

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# AspNetCore.Identity.MongoDbCore

A MongoDb UserStore and RoleStore adapter for Microsoft.AspNetCore.Identity 2.0.
Allows you to use MongoDb instead of SQL server with Microsoft.AspNetCore.Identity 2.0.
A MongoDb UserStore and RoleStore adapter for Microsoft.AspNetCore.Identity 2.0 and 3.1.
Allows you to use MongoDb instead of SQL server with Microsoft.AspNetCore.Identity 2.0 and 3.1.

Covered by 737 integration tests and unit tests from the modified [Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test](https://github.com/aspnet/Identity/tree/b865d5878623077eeb715e600d75fa9c24dbb5a1/test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test) test suite.

Supports both `netstandard2.0` and `netcoreapp2.0`.
Supports both `netstandard2.1` and `netcoreapp3.1`.

Available as a Nuget package : https://www.nuget.org/packages/AspNetCore.Identity.MongoDbCore/

Expand Down Expand Up @@ -126,7 +126,8 @@ var mongoDbIdentityConfiguration = new MongoDbIdentityConfiguration
options.User.AllowedUserNameCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@.-_";
}
};
services.ConfigureMongoDbIdentity<ApplicationUser, ApplicationRole, Guid>(mongoDbIdentityConfiguration);
services.ConfigureMongoDbIdentity<ApplicationUser, ApplicationRole, Guid>(mongoDbIdentityConfiguration)
.AddDefaultTokenProviders();
```

# Running the tests
Expand All @@ -142,7 +143,7 @@ AspNetCore.Identity.MongoDbCore is under MIT license - http://www.opensource.org
The MIT License (MIT)

Copyright (c) 2016-2017 Alexandre Spieser
Copyright (c) 2016-2021 Alexandre Spieser

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -163,4 +164,4 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

## Copyright
Copyright © 2017
Copyright © 2021
10 changes: 0 additions & 10 deletions package.ps1

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@


<ItemGroup>
<PackageReference Include="AspNetCore.Identity.MongoDbCore" Version="3.1.1" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.17.0" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="3.1.12" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="3.1.12" />
Expand All @@ -25,10 +26,6 @@
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\AspNetCore.Identity.MongoDbCore.csproj" />
</ItemGroup>

<ItemGroup>
<Content Update="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
Expand Down
2 changes: 1 addition & 1 deletion sample/MongoIdentitySample.Mvc/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"MongoDbSettings": {
"ConnectionString": "mongodb://localhost:27017",
"DatabaseName": "MongoDbTests"
"DatabaseName": "MongoDbTests2"
},
"Logging": {
"IncludeScopes": {},
Expand Down
23 changes: 17 additions & 6 deletions src/AspNetCore.Identity.MongoDbCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,33 @@

<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;netstandard2.1</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageId>AspNetCore.Identity.MongoDbCore</PackageId>
<PackageVersion>3.1.1</PackageVersion>
<Authors>Alexandre Spieser</Authors>
<PackageTitle>AspNetCore.Identity.MongoDbCore</PackageTitle>
<Description>A MongoDb UserStore and RoleStore adapter for Microsoft.Extensions.Identity.Core 3.1.</Description>
<PackageLicenseUrl>http://www.opensource.org/licenses/mit-license.php</PackageLicenseUrl>
<PackageProjectUrl>http://www.opensource.org/licenses/mit-license.php</PackageProjectUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageReleaseNotes>Release notes are at Release notes are at https://github.com/alexandre-spieser/AspNetCore.Identity.MongoDbCore/releases</PackageReleaseNotes>
<Copyright>Copyright 2021 (c) Alexandre Spieser. All rights reserved.</Copyright>
<PackageTags>aspnetcore mongo mongodb identity membership</PackageTags>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<RepositoryUrl>https://github.com/alexandre-spieser/AspNetCore.Identity.MongoDbCore</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<Version>3.1.0</Version>
<FileVersion>3.1.0</FileVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DocumentationFile>bin\Release\netstandard2.1\AspNetCore.Identity.MongoDbCore.xml</DocumentationFile>
<PropertyGroup>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DocumentationFile>bin\Debug\netstandard2.1\AspNetCore.Identity.MongoDbCore.xml</DocumentationFile>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Identity.Core" Version="3.1.12" />
<PackageReference Include="Microsoft.Extensions.Identity.Stores" Version="3.1.12" />
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="2.2.0" />
<PackageReference Include="MongoDB.Driver" Version="2.9.3" />
<PackageReference Include="MongoDbGenericRepository" Version="1.4.3" />
</ItemGroup>
Expand Down
34 changes: 0 additions & 34 deletions src/AspNetCore.Identity.MongoDbCore.nuspec

This file was deleted.

Loading

0 comments on commit a9903b1

Please sign in to comment.