├── BlazorAuthenticationTutorial
├── Client
│ ├── wwwroot
│ │ ├── favicon.ico
│ │ ├── icon-192.png
│ │ ├── css
│ │ │ ├── open-iconic
│ │ │ │ ├── font
│ │ │ │ │ ├── fonts
│ │ │ │ │ │ ├── open-iconic.eot
│ │ │ │ │ │ ├── open-iconic.otf
│ │ │ │ │ │ ├── open-iconic.ttf
│ │ │ │ │ │ ├── open-iconic.woff
│ │ │ │ │ │ └── open-iconic.svg
│ │ │ │ │ └── css
│ │ │ │ │ │ └── open-iconic-bootstrap.min.css
│ │ │ │ ├── ICON-LICENSE
│ │ │ │ ├── README.md
│ │ │ │ └── FONT-LICENSE
│ │ │ └── app.css
│ │ └── index.html
│ ├── Pages
│ │ ├── Index.razor
│ │ ├── Counter.razor
│ │ ├── Login.razor
│ │ └── FetchData.razor
│ ├── Shared
│ │ ├── MainLayout.razor
│ │ ├── SurveyPrompt.razor
│ │ ├── LoginLogoutButton.razor
│ │ ├── NavMenu.razor.css
│ │ ├── NavMenu.razor
│ │ └── MainLayout.razor.css
│ ├── _Imports.razor
│ ├── Program.cs
│ ├── BlazorAuthenticationTutorial.Client.csproj
│ ├── App.razor
│ ├── Properties
│ │ └── launchSettings.json
│ └── CustomAuthStateProvider.cs
├── Server
│ ├── appsettings.Development.json
│ ├── appsettings.json
│ ├── BlazorAuthenticationTutorial.Server.csproj
│ ├── Pages
│ │ ├── Error.cshtml.cs
│ │ └── Error.cshtml
│ ├── Program.cs
│ ├── Controllers
│ │ ├── AuthController.cs
│ │ └── WeatherForecastController.cs
│ └── Properties
│ │ └── launchSettings.json
└── Shared
│ ├── BlazorAuthenticationTutorial.Shared.csproj
│ ├── WeatherForecast.cs
│ └── UserLoginDto.cs
├── BlazorAuthenticationTutorial.sln
├── .gitattributes
└── .gitignore
/BlazorAuthenticationTutorial/Client/wwwroot/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/patrickgod/BlazorAuthenticationTutorial/HEAD/BlazorAuthenticationTutorial/Client/wwwroot/favicon.ico
--------------------------------------------------------------------------------
/BlazorAuthenticationTutorial/Client/wwwroot/icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/patrickgod/BlazorAuthenticationTutorial/HEAD/BlazorAuthenticationTutorial/Client/wwwroot/icon-192.png
--------------------------------------------------------------------------------
/BlazorAuthenticationTutorial/Server/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Information",
5 | "Microsoft.AspNetCore": "Warning"
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/BlazorAuthenticationTutorial/Server/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Information",
5 | "Microsoft.AspNetCore": "Warning"
6 | }
7 | },
8 | "AllowedHosts": "*"
9 | }
10 |
--------------------------------------------------------------------------------
/BlazorAuthenticationTutorial/Client/Pages/Index.razor:
--------------------------------------------------------------------------------
1 | @page "/"
2 |
3 |
Current count: @currentCount
9 | 10 | 11 | 12 | 13 | 14 |Sorry, there's nothing at this address.
15 |This component demonstrates fetching data from the server.
10 | 11 | @if (forecasts == null) 12 | { 13 |Loading...
14 | } 15 | else 16 | { 17 || Date | 21 |Temp. (C) | 22 |Temp. (F) | 23 |Summary | 24 |
|---|---|---|---|
| @forecast.Date.ToShortDateString() | 31 |@forecast.TemperatureC | 32 |@forecast.TemperatureF | 33 |@forecast.Summary | 34 |
24 | Request ID: @Model.RequestId
25 |
30 | Swapping to the Development environment displays detailed information about the error that occurred. 31 |
32 |33 | The Development environment shouldn't be enabled for deployed applications. 34 | It can result in displaying sensitive information from exceptions to end users. 35 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 36 | and restarting the app. 37 |
38 |