Skip to content

Commit 45e3c10

Browse files
committed
Update 06-authentication-and-authorization
1 parent b8b59e5 commit 45e3c10

File tree

95 files changed

+801
-463
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+801
-463
lines changed

docs/06-authentication-and-authorization.md

Lines changed: 397 additions & 185 deletions
Large diffs are not rendered by default.

save-points/06-add-authentication/BlazingPizza.Client/Pages/Checkout.razor

Lines changed: 0 additions & 73 deletions
This file was deleted.

save-points/06-add-authentication/BlazingPizza.Client/ServerAuthenticationStateProvider.cs

Lines changed: 0 additions & 29 deletions
This file was deleted.

save-points/06-add-authentication/BlazingPizza.Client/Shared/LoginDisplay.razor

Lines changed: 0 additions & 17 deletions
This file was deleted.

save-points/06-add-authentication/BlazingPizza.Server/UserController.cs

Lines changed: 0 additions & 44 deletions
This file was deleted.

save-points/06-add-authentication/BlazingPizza.Server/appsettings.Development.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

save-points/06-add-authentication/BlazingPizza.Server/appsettings.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

save-points/06-add-authentication/BlazingPizza.Client/App.razor renamed to save-points/06-authentication-and-authorization/BlazingPizza.Client/App.razor

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
<Found>
44
<AuthorizeRouteView RouteData="routeData" DefaultLayout="typeof(MainLayout)">
55
<NotAuthorized>
6-
<div class="main">
7-
<h2>You're signed out</h2>
8-
<p>To continue, please sign in.</p>
9-
<a class="btn btn-danger" href="user/signin">Sign in</a>
10-
</div>
6+
<RedirectToLogin />
117
</NotAuthorized>
128
<Authorizing>
139
<div class="main">Please wait...</div>
@@ -16,7 +12,7 @@
1612
</Found>
1713
<NotFound>
1814
<LayoutView Layout="typeof(MainLayout)">
19-
<div class="main">Page not found</div>
15+
<div class="main">Sorry, there's nothing at this address.</div>
2016
</LayoutView>
2117
</NotFound>
2218
</Router>

save-points/06-add-authentication/BlazingPizza.Client/BlazingPizza.Client.csproj renamed to save-points/06-authentication-and-authorization/BlazingPizza.Client/BlazingPizza.Client.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<ItemGroup>
1010
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="$(BlazorVersion)" />
1111
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Build" Version="$(BlazorVersion)" PrivateAssets="all" />
12-
<PackageReference Include="Microsoft.AspNetCore.Blazor.HttpClient" Version="$(BlazorVersion)" />
13-
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="$(AspNetCoreVersion)" />
12+
<PackageReference Include="System.Net.Http.Json" Version="$(SystemNetHttpJsonVersion)" />
13+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="$(BlazorVersion)" />
1414
</ItemGroup>
1515

1616
<ItemGroup>

0 commit comments

Comments
 (0)