![]() |
VOOZH | about |
dotnet add package Hexalith.DaprIdentityStore --version 1.57.3
NuGet\Install-Package Hexalith.DaprIdentityStore -Version 1.57.3
<PackageReference Include="Hexalith.DaprIdentityStore" Version="1.57.3" />
<PackageVersion Include="Hexalith.DaprIdentityStore" Version="1.57.3" />Directory.Packages.props
<PackageReference Include="Hexalith.DaprIdentityStore" />Project file
paket add Hexalith.DaprIdentityStore --version 1.57.3
#r "nuget: Hexalith.DaprIdentityStore, 1.57.3"
#:package Hexalith.DaprIdentityStore@1.57.3
#addin nuget:?package=Hexalith.DaprIdentityStore&version=1.57.3Install as a Cake Addin
#tool nuget:?package=Hexalith.DaprIdentityStore&version=1.57.3Install as a Cake Tool
This folder contains the core implementation of the Hexalith.DaprIdentityStore library.
For complete documentation, installation instructions, and usage examples, please refer to the .
This library is part of the Hexalith.DaprIdentityStore solution. For development guidelines and contribution information, please see the main project documentation.
This feature allows synchronizing user roles from external identity providers to the local identity store when users log in using external authentication providers.
When a user logs in or links an account with an external identity provider (such as Google, Microsoft, Okta, etc.), the system:
The synchronization happens in the following scenarios:
The system looks for role claims with the following claim types:
ClaimTypes.Role (http://schemas.microsoft.com/ws/2008/06/identity/claims/role)role (common in OAuth providers)roles (used by some identity providers)/roles (common in JWT formats)The implementation is provided by the ExternalLoginExtensions.cs class, which extends UserManager<CustomUser> with the SyncExternalProviderRolesAsync method.
public static async Task SyncExternalProviderRolesAsync(
this UserManager<CustomUser> userManager,
CustomUser user,
ExternalLoginInfo externalLoginInfo)
When configuring external identity providers, ensure they are set up to include role claims in the authentication token. The specific configuration varies by provider, but generally involves:
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on Hexalith.DaprIdentityStore:
| Package | Downloads |
|---|---|
|
Hexalith.DaprIdentityStore.UI
Hexalith is a set of libraries to build a micro-service architecture. |
This package is not used by any popular GitHub repositories.