EasyArchitect.Web.Blazor.AuthExtensions
8.0.0.1
dotnet add package EasyArchitect.Web.Blazor.AuthExtensions --version 8.0.0.1
NuGet\Install-Package EasyArchitect.Web.Blazor.AuthExtensions -Version 8.0.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EasyArchitect.Web.Blazor.AuthExtensions" Version="8.0.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EasyArchitect.Web.Blazor.AuthExtensions --version 8.0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EasyArchitect.Web.Blazor.AuthExtensions, 8.0.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install EasyArchitect.Web.Blazor.AuthExtensions as a Cake Addin #addin nuget:?package=EasyArchitect.Web.Blazor.AuthExtensions&version=8.0.0.1 // Install EasyArchitect.Web.Blazor.AuthExtensions as a Cake Tool #tool nuget:?package=EasyArchitect.Web.Blazor.AuthExtensions&version=8.0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Blazor 由淺入深系列課程 - 課程範例
這裡是「Blazor 由淺入深系列課程」的課程範例專案,透過這個專案,你可以學到如何使用 Blazor 開發 Web 應用程式,並學習到如何建置具備 Authentication 的 Blazor 系統。
Lab 實作範例程式
- 因此在網頁常見 Stateless 架構,但為了識別操作者身分,除了 Kerberos 或 Form 驗證,其實也有土法煉鋼法,但重點在於在分散式環境中,也能(保存/識別)〔身分/狀態〕
身分驗證 Login 功能實作
(1). 可使用我的自定義套件功能
(2). 使用客製化的 NewCookie 取代內建的 HttpCookie
(3). 如何純手工實作 Token?
(4). Blazor 的狀態 Status 保存實戰
這個範例包含一個 AuthenticationStateProvider 抽象類別的擴充套件,用以簡化原有在實作 Blazor 的驗證功能的複雜度。
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- EasyArchitect.PageModel.AuthExtensions (>= 6.0.1.1)
- Microsoft.AspNetCore.Components.Authorization (>= 8.0.7)
- Microsoft.AspNetCore.Components.Web (>= 8.0.2)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.