Commit Graph

117 Commits

Author SHA1 Message Date
David Barker 80b35e3baf Add appsettings config load for tests
Enables the config to be changed outside of the test
appsettings.local.json is not checked into the repo
2020-01-24 12:57:51 +08:00
David Barker f1265ec3df add razor runtime compilation for development environment 2020-01-24 10:32:54 +08:00
David Barker c59d7017f8 added launch for VS Code 2020-01-24 10:22:39 +08:00
David Barker 9f4c5668bd Upgraded to dotnetcore 3.1
as per migration recommendations
2020-01-24 10:21:11 +08:00
David Barker 41ea9aac8f add vs code launch settings 2020-01-24 09:43:04 +08:00
David Barker 811d543d35 Changed IHostingEnvironment to IWebHostEnvironment
Added insights telemetry to configure services
Added local settings json for storing localised settings
2020-01-24 09:42:50 +08:00
David Barker 59213089ed Migrated main to 3.1 format 2020-01-24 09:30:34 +08:00
David Barker b58edfadfc remove the AspNetCore assemblies as these are no longer needed 2020-01-24 09:25:51 +08:00
David Barker d078e256c8 remove comments from json file 2020-01-24 09:25:31 +08:00
David Barker d7fdd1fe58 Added appsettings.local.json to ignore file
This file can be used to override local settings
like the connection string.
2020-01-24 09:25:18 +08:00
Alexandre SPIESER 6212092dd5 Merge pull request #24 from alexandre-spieser/alex/fixMvCSample
Fix errors at startup.
2020-01-23 23:08:32 +00:00
Alexandre SPIESER 6b25924df3 Fix errors at startup. 2020-01-23 23:07:28 +00:00
Alexandre SPIESER 8019387b0f Merge pull request #23 from d-barker/master
Updated library to netcoreapp3.1 and netstandard2.1 (all unit tests passing)
2020-01-23 22:53:33 +00:00
David Barker d5ae41844f Fixed build issue in LoggerFactory 2020-01-23 22:54:02 +08:00
David Barker b9491256b0 - Used the work from @knight1219 (Daniel Mathews) as the basis.
* Fixed the unit tests so that they are now passing.
Note: This is my first real introduction to Moq, so there are probably a few things that can be improved.

Changes:
* Had a few issues with the mock logger, ended up adding a LoggerFactory and Logger implementation to work around this issue (for some reason the mock logger was never called and the unit tests failed because the string builder was never updated).
* Accommodated changes to the SignInManager, UserManager where the latest version has added Logging to constructor
* SecurityStamp functions in UserManager now check for null and throws an exception, so the unit tests can no longer call GetSecurityStampAsync before its set. Line 866: https://github.com/dotnet/aspnetcore/blame/605c522fa3e875fd6d3aefa783a71d1745b7e4c7/src/Identity/Extensions.Core/src/UserManager.cs
* SignInManager.RefreshSignInAsync has changed the internal method from s.SignInAsync to SignInWithClaimsAsync
2020-01-23 22:46:35 +08:00
Alexandre SPIESER bf44fca3ae Merge pull request #14 from alexandre-spieser/alex/UpdateMongoRepoDep
updating package / sln deps
2019-04-23 23:46:22 +01:00
Alexandre SPIESER bfa4ca2ffb updating package / sln deps 2019-04-23 23:43:43 +01:00
alexandre-spieser deb70ca9c2 updated nuget packages to latest version 2018-11-15 09:02:06 +00:00
alexandre-spieser c817c7db52 Update to MongoDB Driver 2.7.0, MongoDbGenericRepository 1.3.8. 2018-10-07 20:40:37 +01:00
Alexandre SPIESER 1114b6531d Update README.md 2018-09-27 22:20:45 +01:00
Alexandre SPIESER f95988269c Merge pull request #7 from joshuadavidson/patch-1
Add collection naming & ObjectId documentation
2018-09-27 22:17:58 +01:00
Joshua Davidson 7c36f72016 Add collection naming & ObjectId documentation
Document collection naming scheme and ability to rename collection with `CollectionName` attribute.
Document optional use of `MongoDB.Bson.ObjectId` for entity keys.
Update headers for clarity.
2018-09-27 15:05:04 -05:00
alexandre-spieser 1ec9d1123e Add support for documents with and Id of type ObjectId. 2018-03-07 22:50:24 +00:00
Alexandre SPIESER 9c2ac9ee1b Merge pull request #3 from alexandre-spieser/add-license-1
Create LICENSE
2018-02-24 12:21:45 +00:00
Alexandre SPIESER 74a2060413 Create LICENSE 2018-02-24 12:21:16 +00:00
Alexandre SPIESER 10d87e6652 Update README.md 2018-01-27 16:44:31 +00:00
alexandre-spieser 49e2e0c26b MongoDB 3.6 Support, Identity 2.0.1 upgrade. 2018-01-27 16:29:47 +00:00
alexandre-spieser 17b38aeb3f Make surewe you only add properties that are from the UserLoginInfo type. 2018-01-13 00:16:53 +00:00
alexandre-spieser e9ce1b0111 giving credits. 2017-11-30 23:01:31 +00:00
alexandre-spieser 49a13ba3b0 Updated packages to 2.0.1 and added support for primary keys of type long. 2017-11-30 22:54:26 +00:00
alexandre-spieser 10eb28d918 added SqlUserStoreMethodsThrowWhenDisposedTest back 2017-11-19 19:10:22 +00:00
alexandre-spieser f6c85c8385 edit release notes. 2017-11-19 19:03:07 +00:00
alexandre-spieser 833a2bed99 Make the sample mvc app depend on the nuget package. 2017-11-19 18:59:29 +00:00
alexandre-spieser 9fe92db2e1 Make sure the lifetime of the UserStore is the same as the UserManager to avoid ObjectDisposed exceptions. 2017-11-19 18:47:55 +00:00
alexandre-spieser 567a64985c Merge branch 'master' of https://github.com/alexandre-spieser/AspNetCore.Identity.MongoDbCore 2017-11-19 18:35:45 +00:00
alexandre-spieser 2046daf11b added mongodb mvc sample 2017-11-19 18:35:40 +00:00
Alexandre SPIESER fc8032ee9e Update README.md 2017-11-14 13:53:28 +00:00
Alexandre SPIESER 23d52d0275 Update README.md 2017-11-14 13:52:33 +00:00
Alexandre SPIESER 8beeaf463d Update README.md 2017-11-01 09:34:21 +00:00
Alexandre SPIESER e561777658 Update README.md 2017-10-29 18:26:13 +00:00
Alexandre SPIESER 91277203fd Update README.md 2017-10-29 18:24:56 +00:00
Alexandre SPIESER 43b3d8efb5 Update README.md 2017-10-29 18:23:59 +00:00
alexandre-spieser 876cb39497 Updated testing framework. 2017-10-29 18:50:25 +00:00
Alexandre SPIESER 80424ad512 Update README.md 2017-10-29 17:44:14 +00:00
alexandre-spieser 8d49c3fb96 Fixing tests. 2017-10-29 18:20:54 +00:00
alexandre-spieser 9bbf5c577e adding more comments and deleting unused methods. 2017-10-29 18:15:09 +00:00
alexandre-spieser d99ce293f0 Big cleanup and adding IdentityBuilder extensions the same way as the EF IdentityBuilder extensions do, allowing customer Identity setup. 2017-10-29 15:09:57 +00:00
alexandre-spieser 7a1558a48b Merge branch 'master' of https://github.com/alexandre-spieser/AspNetCore.Identity.MongoDbCore 2017-10-22 02:29:07 +00:00
alexandre-spieser 9f3d044d17 removing warnings. 2017-10-22 02:28:58 +00:00
alexandre-spieser f62e03c80b Merge branch 'master' of https://github.com/alexandre-spieser/AspNetCore.Identity.MongoDbCore 2017-10-22 01:24:36 +00:00