diff --git a/server-side/okta-hosted-login/okta-blazor-server-side-example.sln b/server-side/okta-hosted-login/okta-blazor-server-side-example.sln
index 24ccd32..6b58b98 100644
--- a/server-side/okta-hosted-login/okta-blazor-server-side-example.sln
+++ b/server-side/okta-hosted-login/okta-blazor-server-side-example.sln
@@ -1,9 +1,9 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
-VisualStudioVersion = 17.4.33103.184
+VisualStudioVersion = 17.10.34707.107
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "okta-blazor-server-side-example", "okta-blazor-server-side-example\okta-blazor-server-side-example.csproj", "{58220544-0DA7-4F8B-8617-62CF1F5709A1}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "okta-blazor-server-side-example", "okta-blazor-server-side-example\okta-blazor-server-side-example.csproj", "{82B2D8D5-403C-42C3-AEAD-4AAD216D884F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -11,15 +11,15 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {58220544-0DA7-4F8B-8617-62CF1F5709A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {58220544-0DA7-4F8B-8617-62CF1F5709A1}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {58220544-0DA7-4F8B-8617-62CF1F5709A1}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {58220544-0DA7-4F8B-8617-62CF1F5709A1}.Release|Any CPU.Build.0 = Release|Any CPU
+ {82B2D8D5-403C-42C3-AEAD-4AAD216D884F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {82B2D8D5-403C-42C3-AEAD-4AAD216D884F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {82B2D8D5-403C-42C3-AEAD-4AAD216D884F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {82B2D8D5-403C-42C3-AEAD-4AAD216D884F}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
- SolutionGuid = {B3B8C6DE-B60D-4CFE-A189-526E91EA7434}
+ SolutionGuid = {F73BDD76-BFA5-40FB-9F68-0B669CF8F66D}
EndGlobalSection
EndGlobal
diff --git a/server-side/okta-hosted-login/okta-blazor-server-side-example/App.razor b/server-side/okta-hosted-login/okta-blazor-server-side-example/App.razor
deleted file mode 100644
index b4af97a..0000000
--- a/server-side/okta-hosted-login/okta-blazor-server-side-example/App.razor
+++ /dev/null
@@ -1,15 +0,0 @@
- Sorry, there's nothing at this address.
+ Request ID: @RequestId
+
+ Swapping to Development environment will display more detailed information about the error that occurred. +
++ The Development environment shouldn't be enabled for deployed applications. + It can result in displaying sensitive information from exceptions to end users. + For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development + and restarting the app. +
+ +@code{ + [CascadingParameter] + private HttpContext? HttpContext { get; set; } + + private string? RequestId { get; set; } + private bool ShowRequestId => !string.IsNullOrEmpty(RequestId); + + protected override void OnInitialized() => + RequestId = Activity.Current?.Id ?? HttpContext?.TraceIdentifier; +} diff --git a/server-side/okta-hosted-login/okta-blazor-server-side-example/Components/Pages/Home.razor b/server-side/okta-hosted-login/okta-blazor-server-side-example/Components/Pages/Home.razor new file mode 100644 index 0000000..9001e0b --- /dev/null +++ b/server-side/okta-hosted-login/okta-blazor-server-side-example/Components/Pages/Home.razor @@ -0,0 +1,7 @@ +@page "/" + +This component demonstrates showing data.
+ +@if (forecasts == null) +{ +Loading...
+} +else +{ +| Date | +Temp. (C) | +Temp. (F) | +Summary | +
|---|---|---|---|
| @forecast.Date.ToShortDateString() | +@forecast.TemperatureC | +@forecast.TemperatureF | +@forecast.Summary | +
- Request ID: @Model.RequestId
-
- Swapping to the Development environment displays detailed information about the error that occurred. -
-- The Development environment shouldn't be enabled for deployed applications. - It can result in displaying sensitive information from exceptions to end users. - For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development - and restarting the app. -
-This component demonstrates fetching data from a service.
- -@if (forecasts == null) -{ -Loading...
-} -else -{ -| Date | -Temp. (C) | -Temp. (F) | -Summary | -
|---|---|---|---|
| @forecast.Date.ToShortDateString() | -@forecast.TemperatureC | -@forecast.TemperatureF | -@forecast.Summary | -