forked from easyquery/DotNetSamples
-
Notifications
You must be signed in to change notification settings - Fork 0
Upgrade all net6.0 projects to net8.0 with updated NuGet packages #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
devin-ai-integration
wants to merge
3
commits into
master
Choose a base branch
from
devin/1777638584-upgrade-net6-to-net8
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
8d58145
Upgrade all net6.0 projects to net8.0 with updated NuGet packages
devin-ai-integration[bot] e7e1bb6
Remove OIDC/IdentityServer auth from BlazorWasm client to match serve…
devin-ai-integration[bot] c185a3c
Remove remaining auth references from BlazorWasm Client
devin-ai-integration[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
37 changes: 12 additions & 25 deletions
37
AspNetCore/Blazor/AdHocReporting.BlazorWasm/Client/App.razor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,12 @@ | ||
| <CascadingAuthenticationState> | ||
| <Router AppAssembly="@typeof(App).Assembly"> | ||
| <Found Context="routeData"> | ||
| <AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"> | ||
| <NotAuthorized> | ||
| @if (context.User.Identity?.IsAuthenticated != true) | ||
| { | ||
| <RedirectToLogin /> | ||
| } | ||
| else | ||
| { | ||
| <p role="alert">You are not authorized to access this resource.</p> | ||
| } | ||
| </NotAuthorized> | ||
| </AuthorizeRouteView> | ||
| <FocusOnNavigate RouteData="@routeData" Selector="h1" /> | ||
| </Found> | ||
| <NotFound> | ||
| <PageTitle>Not found</PageTitle> | ||
| <LayoutView Layout="@typeof(MainLayout)"> | ||
| <p role="alert">Sorry, there's nothing at this address.</p> | ||
| </LayoutView> | ||
| </NotFound> | ||
| </Router> | ||
| </CascadingAuthenticationState> | ||
| <Router AppAssembly="@typeof(App).Assembly"> | ||
| <Found Context="routeData"> | ||
| <RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" /> | ||
| <FocusOnNavigate RouteData="@routeData" Selector="h1" /> | ||
| </Found> | ||
| <NotFound> | ||
| <PageTitle>Not found</PageTitle> | ||
| <LayoutView Layout="@typeof(MainLayout)"> | ||
| <p role="alert">Sorry, there's nothing at this address.</p> | ||
| </LayoutView> | ||
| </NotFound> | ||
| </Router> |
11 changes: 5 additions & 6 deletions
11
...re/Blazor/AdHocReporting.BlazorWasm/Client/EqDemo.BlazorWasm.AdhocReporting.Client.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
AspNetCore/Blazor/AdHocReporting.BlazorWasm/Client/Pages/Authentication.razor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 1 addition & 24 deletions
25
AspNetCore/Blazor/AdHocReporting.BlazorWasm/Client/Shared/LoginDisplay.razor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1 @@ | ||
| @using Microsoft.AspNetCore.Components.Authorization | ||
| @using Microsoft.AspNetCore.Components.WebAssembly.Authentication | ||
|
|
||
| @inject NavigationManager Navigation | ||
| @inject SignOutSessionStateManager SignOutManager | ||
|
|
||
| <AuthorizeView> | ||
| <Authorized> | ||
| <a href="authentication/profile">Hello, @context.User.Identity?.Name!</a> | ||
| <button class="nav-link btn btn-link" @onclick="BeginSignOut">Log out</button> | ||
| </Authorized> | ||
| <NotAuthorized> | ||
| <a href="authentication/register">Register</a> | ||
| <a href="authentication/login">Log in</a> | ||
| </NotAuthorized> | ||
| </AuthorizeView> | ||
|
|
||
| @code{ | ||
| private async Task BeginSignOut(MouseEventArgs args) | ||
| { | ||
| await SignOutManager.SetSignOutState(); | ||
| Navigation.NavigateTo("authentication/logout"); | ||
| } | ||
| } | ||
| @* Authentication has been removed as part of the .NET 8 migration (IdentityServer was deprecated). *@ |
9 changes: 1 addition & 8 deletions
9
AspNetCore/Blazor/AdHocReporting.BlazorWasm/Client/Shared/RedirectToLogin.razor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1 @@ | ||
| @inject NavigationManager Navigation | ||
|
|
||
| @code { | ||
| protected override void OnInitialized() | ||
| { | ||
| Navigation.NavigateTo($"authentication/login?returnUrl={Uri.EscapeDataString(Navigation.Uri)}"); | ||
| } | ||
| } | ||
| @* Authentication has been removed as part of the .NET 8 migration (IdentityServer was deprecated). *@ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
...etCore/Blazor/AdHocReporting.BlazorWasm/Server/Controllers/OidcConfigurationController.cs
This file was deleted.
Oops, something went wrong.
10 changes: 3 additions & 7 deletions
10
AspNetCore/Blazor/AdHocReporting.BlazorWasm/Server/Data/AppDbContext.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.