Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit49e0b7b

Browse files
committed
update readme
1 parentb26a9cd commit49e0b7b

File tree

3 files changed

+87
-30
lines changed

3 files changed

+87
-30
lines changed

‎AspNetCoreIdentity/ClientApp/app/components/home/home.component.html‎

Lines changed: 76 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
<h1id="aspnetcoreidentityseries">ASP.NET Core Identity Series</h1>
22

3-
<p><imgsrc="https://chsakell.files.wordpress.com/2018/04/aspnet-core-identity-13.png"alt="ASP.NET Core Identity Series"/></p>
3+
<h2id="themostcompleteguideforaspnetcoreidentity">The most complete guide for ASP.NET Core Identity</h2>
4+
5+
<p><imgclass="img-responsive"src="https://chsakell.files.wordpress.com/2018/04/aspnet-core-identity-13.png"alt="ASP.NET Core Identity Series"/></p>
6+
7+
<p>
8+
9+
</p>
410

511
<h2id="part1gettingstartedhttpchsakellcom20180428aspnetcoreidentityseriesgettingstarted">Part 1 -<ahref="http://chsakell.com/2018/04/28/asp-net-core-identity-series-getting-started">Getting Started</a></h2>
612

@@ -50,18 +56,77 @@ <h2 id="part3deepdiveinauthorizationhttpswpmep3mrwu1ik">Part 3 - <a href="https:
5056
<li>Associated repository branch:<ahref="https://github.com/chsakell/aspnet-core-identity/tree/authorization">authorization</a></li>
5157
</ul>
5258

53-
<h2id="part4oauth20openidconnectidentityserverhttpswpmep3mrwu1ik">Part 4 -<ahref="https://wp.me/p3mRWu-1ik">OAuth 2.0, OpenID Connect &amp; IdentityServer</a></h2>
59+
<h2id="part4oauth20openidconnectidentityserverhttpswpmep3mrwu1ag">Part 4 -<ahref="https://wp.me/p3mRWu-1Ag">OAuth 2.0, OpenID Connect &amp; IdentityServer</a></h2>
5460

5561
<ul>
56-
<li>Explain how<code>OAuth 2.0</code> works<em>(terminology, grant types, tokens, flows)</em></li>
62+
<li>Explain how<code>OAuth 2.0</code> works<em>(terminology, grant types, tokens)</em></li>
5763

58-
<li>Explain how<code>OpenID Connect</code> works<em>(terminology,grant types,tokens, flows)</em></li>
64+
<li>Explain how<code>OpenID Connect</code> works<em>(terminology, tokens, flows)</em></li>
5965

6066
<li>Learn how to use<code>IdentityServer</code> for integrating<code>OAuth 2.0</code> and<code>OpenID Connect</code></li>
6167

6268
<li>Associated repository branch:<ahref="https://github.com/chsakell/aspnet-core-identity/tree/identity-server">identity-server</a></li>
6369
</ul>
6470

71+
<h2id="part5externalproviderauthenticationregistrationstrategyhttpswpmep3mrwu1kq">Part 5 -<ahref="https://wp.me/p3mRWu-1Kq">External provider authentication &amp; registration strategy</a></h2>
72+
73+
<ul>
74+
<li>
75+
Step by step guides for enabling external provider authentication
76+
77+
78+
<ul>
79+
<li><ahref="https://wp.me/p3mRWu-1Kq#google">Google authentication</a></li>
80+
81+
<li><ahref="https://wp.me/p3mRWu-1Kq#facebook">Facebook authentication</a></li>
82+
83+
<li><ahref="https://wp.me/p3mRWu-1Kq#twitter">Twitter authentication</a></li>
84+
85+
<li><ahref="https://wp.me/p3mRWu-1Kq#microsoft">Microsoft authentication</a></li>
86+
87+
<li><ahref="https://wp.me/p3mRWu-1Kq#github">GitHub authentication</a></li>
88+
89+
<li><ahref="https://wp.me/p3mRWu-1Kq#linkedin">LinkedIn authentication</a></li>
90+
91+
<li><ahref="https://wp.me/p3mRWu-1Kq#dropbox">DropBox authentication</a></li>
92+
</ul>
93+
</li>
94+
95+
<li>Implement an external provider<ahref="https://wp.me/p3mRWu-1Kq#registration-strategy">registration strategy</a></li>
96+
97+
<li>Associated repository branch:<ahref="https://github.com/chsakell/aspnet-core-identity/tree/external-authentication">external-authentication</a></li>
98+
</ul>
99+
100+
<h2id="part6twofactorauthenticationhttpswpmep3mrwu1pe">Part 6 -<ahref="https://wp.me/p3mRWu-1Pe">Two Factor Authentication</a></h2>
101+
102+
<ul>
103+
<li>
104+
Implement all Two Factor Authentication related tasks:
105+
106+
107+
<ul>
108+
<li>Enable/Disable 2FA</li>
109+
110+
<li>Generate/Reset recovery tokens</li>
111+
112+
<li>Reset authenticator app</li>
113+
</ul>
114+
</li>
115+
116+
<li>Explore the 2FA code and database schema</li>
117+
118+
<li>
119+
Enhance the security level of 2FA by overriding the default implementation
120+
121+
122+
<ul>
123+
<li>Encrypt authenticator key</li>
124+
125+
<li>Encrypt recovery tokens</li>
126+
</ul>
127+
</li>
128+
</ul>
129+
65130
<blockquote>
66131
<p>To be continued..</p>
67132
</blockquote>
@@ -89,44 +154,32 @@ <h2 id="installationinstructions">Installation instructions</h2>
89154
</li>
90155

91156
<li>
92-
<strong>Create the<em>AspNetCoreIdentityDb</em> database</strong>
157+
<strong>Create the<em>AspNetCoreIdentityDb</em> database</strong><em>(skip if you want to run with In memory DB)</em>
93158

94159

95160
<ul>
96161
<li><code>cd ./AspNetCoreIdentity</code> where the AspNetCoreIdentity.csproj exist</li>
97162

98-
<li><code>Add-Migration initial_migration</code><em>(optional if already exists)</em></li>
163+
<li><code>Add-Migration initial_migration</code>or<code>dotnet ef migrations add initial_migration</code></li>
99164

100-
<li><code>Update-Database</code></li>
165+
<li><code>Update-Database</code> or<code>dotnet ef database update</code></li>
101166
</ul>
102167
</li>
103168

104169
<li>
105-
<strong>Create the<em>IdentityServerDb</em> database</strong>
170+
<strong>Create the<em>IdentityServerDb</em> database</strong><em>(skip if you want to run with In memory DB)</em>
106171

107172

108173
<ul>
109-
<li><code>cd ./IdentityServer</code> where the IdentityServer.csproj exist</li>
110-
111-
<li><code>Add-Migration InitialIdentityServerPersistedGrantDbMigration -c PersistedGrantDbContext -o Data/Migrations/IdentityServer/PersistedGrantDb</code><em>(optional if already exists)</em></li>
112-
113-
<li><code>Add-Migration InitialIdentityServerConfigurationDbMigration -c ConfigurationDbContext -o Data/Migrations/IdentityServer/ConfigurationDb</code><em>(optional if already exists)</em></li>
114-
115-
<li><code>Add-Migration InitialIdentityServerConfigurationDbMigration -c ApplicationDbContext -o Data/Migrations</code><em>(optional if already exists)</em></li>
116-
117-
<li><code>Update-Database -Context ApplicationDbContext</code></li>
118-
119-
<li><code>Update-Database -Context PersistedGrantDbContext</code></li>
120-
121-
<li><code>Update-Database -Context ConfigurationDbContext</code></li>
174+
<li>Follow the<ahref="https://github.com/chsakell/aspnet-core-identity/blob/master/IdentityServer/Data/Migrations/instructions.md">instructions</a></li>
122175
</ul>
123176
</li>
124177
</ol>
125178

126179
<blockquote>
127-
<p>In case you don't want to use a real SQL Server Database when running the<code>AspNetCoreIdentity</code> project, simply set<strong>InMemoryProvider: true</strong> in the<em>appsettings.json</em></p>
180+
<p>In case you don't want to use a real SQL Server Database when running the<code>AspNetCoreIdentity</code> project, simply set<strong>InMemoryProvider: true</strong> in the<em>appsettings.json</em>. This option will use in memory database</p>
128181

129-
<p>In case you don't want to use a real SQL Server Database when running the<code>IdentityServer</code> project simply set<strong>UseInMemoryStores: true</strong> in the relative<em>appsettings.json</em></p>
182+
<p>In case you don't want to use a real SQL Server Database when running the<code>IdentityServer</code> project simply set<strong>UseInMemoryStores: true</strong> in the relative<em>appsettings.json</em> This option will use in memory database</p>
130183
</blockquote>
131184

132185
<h3style="font-weight:normal;">Follow chsakell's Blog</h3>

‎AspNetCoreIdentity/appsettings.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"Default":"Warning"
88
}
99
},
10-
"InMemoryProvider":false,
10+
"InMemoryProvider":true,
1111
"TwoFactorAuthentication:EncryptionEnabled":true
1212
}

‎README.md‎

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,16 @@
5555
* Implement an external provider[registration strategy](https://wp.me/p3mRWu-1Kq#registration-strategy)
5656
* Associated repository branch:[external-authentication](https://github.com/chsakell/aspnet-core-identity/tree/external-authentication)
5757

58-
##Part 6 -[Two Factor Authentication]()
59-
60-
* Explain how`2FA` works
61-
* Explain what`QRCode` is and how it works
62-
* Implement all 2FA flows*(enable, disable, reset authenticator, re-generate tokens)*
63-
* Secure Authenticator Key and Generated tokens
58+
##Part 6 -[Two Factor Authentication](https://wp.me/p3mRWu-1Pe)
59+
60+
* Implement all Two Factor Authentication related tasks:
61+
* Enable/Disable 2FA
62+
* Generate/Reset recovery tokens
63+
* Reset authenticator app
64+
* Explore the 2FA code and database schema
65+
* Enhance the security level of 2FA by overriding the default implementation
66+
* Encrypt authenticator key
67+
* Encrypt recovery tokens
6468

6569
>To be continued..
6670

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp