Skip to content

Commit

Permalink
Create master branch via GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
wallaceiam authored Sep 3, 2016
1 parent ab84144 commit 9888983
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 16 deletions.
43 changes: 28 additions & 15 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,43 @@ <h2 class="project-tagline">MyMojo.AspNet.Identity.MongoDb is a MongoDb backend
</section>

<section class="main-content">
<h3>
<a id="welcome-to-github-pages" class="anchor" href="#welcome-to-github-pages" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Welcome to GitHub Pages.</h3>
<h1>
<a id="mymojoaspnetidentitymongodb" class="anchor" href="#mymojoaspnetidentitymongodb" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>MyMojo.AspNet.Identity.MongoDb</h1>

<p>This automatic page generator is the easiest way to create beautiful pages for all of your projects. Author your page content here <a href="https://guides.github.com/features/mastering-markdown/">using GitHub Flavored Markdown</a>, select a template crafted by a designer, and publish. After your page is generated, you can check out the new <code>gh-pages</code> branch locally. If you’re using GitHub Desktop, simply sync your repository and you’ll see the new branch.</p>
<p>ASP.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). </p>

<h3>
<a id="designer-templates" class="anchor" href="#designer-templates" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Designer Templates</h3>
<p>MyMojo.AspNet.Identity.MongoDb is a MongoDB backend provider that is a nearly in place replacement for the EF version.</p>

<p>We’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.</p>
<h1>
<a id="quick-start" class="anchor" href="#quick-start" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Quick Start</h1>

<h3>
<a id="creating-pages-manually" class="anchor" href="#creating-pages-manually" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Creating pages manually</h3>
<div class="highlight highlight-source-cs"><pre><span class="pl-k">using</span> MyMojo.AspNet.Identity.MongoDb</pre></div>

<p>If you prefer to not use the automatic generator, push a branch named <code>gh-pages</code> 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.</p>
<p>Replace</p>

<h3>
<a id="authors-and-contributors" class="anchor" href="#authors-and-contributors" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Authors and Contributors</h3>
<div class="highlight highlight-source-cs"><pre> services.AddDbContext&lt;ApplicationDbContext&gt;(options =&gt;
options.UseSqlServer(Configuration.GetConnectionString(<span class="pl-s"><span class="pl-pds">"</span>DefaultConnection<span class="pl-pds">"</span></span>)));</pre></div>

<p>You can @mention a GitHub username to generate a link to their profile. The resulting <code>&lt;a&gt;</code> element will link to the contributor’s GitHub Profile. For example: In 2007, Chris Wanstrath (<a href="https://github.com/defunkt" class="user-mention">@defunkt</a>), PJ Hyett (<a href="https://github.com/pjhyett" class="user-mention">@pjhyett</a>), and Tom Preston-Werner (<a href="https://github.com/mojombo" class="user-mention">@mojombo</a>) founded GitHub.</p>
<p>with</p>

<h3>
<a id="support-or-contact" class="anchor" href="#support-or-contact" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Support or Contact</h3>
<div class="highlight highlight-source-cs"><pre>services.AddMongoDbContext&lt;IMongoDatabase&gt;(
connectionString: Configuration.GetConnectionString(<span class="pl-s"><span class="pl-pds">"</span>MongoDbConnection<span class="pl-pds">"</span></span>));</pre></div>

<p>Having trouble with Pages? Check out our <a href="https://help.github.com/pages">documentation</a> or <a href="https://github.com/contact">contact support</a> and we’ll help you sort it out.</p>
<p>And Replace</p>

<div class="highlight highlight-source-cs"><pre>services.AddIdentity&lt;ApplicationUser, IdentityRole&gt;()
.AddEntityFrameworkStores&lt;ApplicationDbContext&gt;()
.AddDefaultTokenProviders();</pre></div>

<p>with</p>

<div class="highlight highlight-source-cs"><pre>services.AddIdentity&lt;ApplicationUser, IdentityRole&gt;()
.AddMongoDbStores&lt;IMongoDatabase&gt;(<span class="pl-s"><span class="pl-pds">"</span>users<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>roles<span class="pl-pds">"</span></span>)
.AddDefaultTokenProviders();</pre></div>

<p>Please raise any Issues.</p>

<p>Thanks and enjoy</p>

<footer class="site-footer">
<span class="site-footer-owner"><a href="https://github.com/wallaceiam/MyMojo.AspNet.Identity.MongoDb">MyMojo.AspNet.Identity.MongoDb</a> is maintained by <a href="https://github.com/wallaceiam">wallaceiam</a>.</span>
Expand Down
2 changes: 1 addition & 1 deletion params.json
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."
}

0 comments on commit 9888983

Please sign in to comment.