-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab84144
commit 9888983
Showing
2 changed files
with
29 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "MyMojo.AspNet.Identity.MongoDb", | ||
"tagline": "MyMojo.AspNet.Identity.MongoDb is a MongoDb backend provider that is a nearly in place replacement for Microsoft.AspNet.Identity.EntityFramework", | ||
"body": "### Welcome to GitHub Pages.\r\nThis automatic page generator is the easiest way to create beautiful pages for all of your projects. Author your page content here [using GitHub Flavored Markdown](https://guides.github.com/features/mastering-markdown/), select a template crafted by a designer, and publish. After your page is generated, you can check out the new `gh-pages` branch locally. If you’re using GitHub Desktop, simply sync your repository and you’ll see the new branch.\r\n\r\n### Designer Templates\r\nWe’ve crafted some handsome templates for you to use. Go ahead and click 'Continue to layouts' to browse through them. You can easily go back to edit your page before publishing. After publishing your page, you can revisit the page generator and switch to another theme. Your Page content will be preserved.\r\n\r\n### Creating pages manually\r\nIf you prefer to not use the automatic generator, push a branch named `gh-pages` to your repository to create a page manually. In addition to supporting regular HTML content, GitHub Pages support Jekyll, a simple, blog aware static site generator. Jekyll makes it easy to create site-wide headers and footers without having to copy them across every page. It also offers intelligent blog support and other advanced templating features.\r\n\r\n### Authors and Contributors\r\nYou can @mention a GitHub username to generate a link to their profile. The resulting `<a>` element will link to the contributor’s GitHub Profile. For example: In 2007, Chris Wanstrath (@defunkt), PJ Hyett (@pjhyett), and Tom Preston-Werner (@mojombo) founded GitHub.\r\n\r\n### Support or Contact\r\nHaving trouble with Pages? Check out our [documentation](https://help.github.com/pages) or [contact support](https://github.com/contact) and we’ll help you sort it out.\r\n", | ||
"body": "# MyMojo.AspNet.Identity.MongoDb\r\n\r\nASP.NET MVC 5 shipped with a new Identity system (in the Microsoft.AspNet.Identity.Core package) in order to support both local login and remote logins via OpenID/OAuth, but only ships with an Entity Framework provider (Microsoft.AspNet.Identity.EntityFramework). \r\n\r\nMyMojo.AspNet.Identity.MongoDb is a MongoDB backend provider that is a nearly in place replacement for the EF version.\r\n\r\n# Quick Start\r\n\r\n```csharp\r\nusing MyMojo.AspNet.Identity.MongoDb\r\n```\r\n\r\nReplace\r\n```csharp\r\n services.AddDbContext<ApplicationDbContext>(options =>\r\n options.UseSqlServer(Configuration.GetConnectionString(\"DefaultConnection\")));\r\n```\r\nwith\r\n```csharp\r\nservices.AddMongoDbContext<IMongoDatabase>(\r\n connectionString: Configuration.GetConnectionString(\"MongoDbConnection\"));\r\n```\r\n\r\nAnd Replace\r\n```csharp\r\nservices.AddIdentity<ApplicationUser, IdentityRole>()\r\n .AddEntityFrameworkStores<ApplicationDbContext>()\r\n .AddDefaultTokenProviders();\r\n```\r\nwith\r\n```csharp\r\nservices.AddIdentity<ApplicationUser, IdentityRole>()\r\n .AddMongoDbStores<IMongoDatabase>(\"users\", \"roles\")\r\n .AddDefaultTokenProviders();\r\n```\r\n\r\nPlease raise any Issues.\r\n\r\nThanks and enjoy\r\n", | ||
"note": "Don't delete this file! It's used internally to help with page regeneration." | ||
} |