How to Base64UrlEncode in Blazor WebAssembly client now that Microsoft.AspNetCore.WebUtilities has been deprecated?
See original GitHub issueI just spotted that NuGet in Visual Studio is saying that package Microsoft.AspNetCore.WebUtilities
at 2.2.0 is deprecated.
I have this package installed into my Blazor WebAssembly Client
project because I need to call method WebEncoders.Base64UrlEncode
.
If I should remove Microsoft.AspNetCore.WebUtilities
, how should my Client
project perform base64 URL encoding?
(I note that my Server project is still able to call WebEncoders
methods, and doesn’t have the deprecated package installed anyway.)
This resource says that WebEncoders.Base64UrlEncode
lives in package Microsoft.AspNetCore.App.Ref
but NuGet tells me that I shouldn’t install that package as it’s an internal thing.
Issue Analytics
- State:
- Created 5 months ago
- Comments:22 (11 by maintainers)
Top Results From Across the Web
Migrating the deprecated Microsoft.AspNetCore.Http. ...
I have a .NET 7 Blazor helper library which has been referencing HttpContext from the Microsoft.AspNetCore.Http.Abstractions (2.2.0) nuget.
Read more >ASP.NET Core Blazor WebAssembly additional security ...
This article describes additional security scenarios for Blazor WebAssembly apps. Attach tokens to outgoing requests.
Read more >Untitled
Dotnet core assembly version Version vs VersionSuffix vs PackageVersion: What do … Web6 thg 4, 2017 · I'm trying to figure out how...
Read more >Untitled
NET project How to Base64UrlEncode in Blazor WebAssembly client now that ... NET CLI Microsoft Learn dotnet list package command - .NET CLI...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@javiercn - ooh! I removed the deprecated package from my Blazor client project just now, and discovered that it’s also using https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.webutilities.queryhelpers?view=aspnetcore-7.0
So this ticket shouldn’t be closed in favour of https://github.com/dotnet/runtime/issues/1658 since that only deals with base64 URL encoding.
Can you re-open?
Done by https://github.com/dotnet/aspnetcore/pull/48265