HAKOM.Security.Core.Net Assembly
Provides the core security infrastructure for the HAKOM platform, including pluggable authentication via IIdentityProvider and resource-level authorization via IAuthorizationService.
Remarks
Section titled “Remarks”Authentication is built around the IIdentityProvider abstraction. Built-in providers include anonymous, static (configuration-based), and local Windows user identity providers. Custom providers can be created by extending ConfigurableIdentityProvider and registering them through ContainerExtensions.
Authorization is handled by IAuthorizationService, which evaluates AuthorizationRule instances against an identity’s claims to determine Permissions for a given IResource.
ITsm.Create(container =>{ container .UseConfiguredIdentityProvider() .UseConfiguredAuthorization();});Claim transformations (ClaimTransformation) allow mapping claims issued by an identity provider to the claim types expected by the authorization layer, enabling flexible integration with external identity systems.
IResource resource = authorizationService.Resources.Create("TimeSeries", "ts-001");await authorizationService.Authorize( Permissions.Read | Permissions.Write, resource, cancellationToken);| Namespaces | |
|---|---|
| HAKOM.Security.Core.Net.Api.Authentication | Contains the public API surface for authentication, including the IIdentityProvider abstraction, ConfigurableIdentityProvider base class, IAuthenticationSettings, and the challenge/credential infrastructure (IChallengeContext, [ChallengeHandler(object, IChallengeContext, CancellationToken)](HAKOM\Security\Core\API\Authentication\ChallengeHandler(object, IChallengeContext, CancellationToken).md ‘HAKOM.Security.Core.Net.Api.Authentication.ChallengeHandler(object, HAKOM.Security.Core.Net.Api.Authentication.IChallengeContext, System.Threading.CancellationToken)’)). |
| HAKOM.Security.Core.Net.Api.Authentication.Exceptions | Contains exceptions related to identity provider configuration and authentication failures in the IIdentityProvider infrastructure. |
| HAKOM.Security.Core.Net.Api.Authentication.Extensions | Provides extension methods for dependency injection registration of authentication services and for transforming System.Security.Claims.ClaimsIdentity instances. |
| HAKOM.Security.Core.Net.Api.Authorization | Contains the public API surface for resource-level authorization, including the IAuthorizationService abstraction, IResource hierarchy, Permissions flags, and AuthorizationRule definitions. |
| HAKOM.Security.Core.Net.Api.Authorization.Exceptions | Contains exceptions related to authorization service configuration and permission evaluation within the IAuthorizationService infrastructure. |
| HAKOM.Security.Core.Net.Api.Authorization.Extensions | Provides extension methods for dependency injection registration of authorization services and for comparing System.Security.Claims.Claim instances. |