BlogDoFT.Libs.Keycloak.Abstractions
1.14.0
See the version list below for details.
dotnet add package BlogDoFT.Libs.Keycloak.Abstractions --version 1.14.0
NuGet\Install-Package BlogDoFT.Libs.Keycloak.Abstractions -Version 1.14.0
<PackageReference Include="BlogDoFT.Libs.Keycloak.Abstractions" Version="1.14.0" />
<PackageVersion Include="BlogDoFT.Libs.Keycloak.Abstractions" Version="1.14.0" />
<PackageReference Include="BlogDoFT.Libs.Keycloak.Abstractions" />
paket add BlogDoFT.Libs.Keycloak.Abstractions --version 1.14.0
#r "nuget: BlogDoFT.Libs.Keycloak.Abstractions, 1.14.0"
#:package BlogDoFT.Libs.Keycloak.Abstractions@1.14.0
#addin nuget:?package=BlogDoFT.Libs.Keycloak.Abstractions&version=1.14.0
#tool nuget:?package=BlogDoFT.Libs.Keycloak.Abstractions&version=1.14.0
BlogDoFT.Libs.Keycloak.Abstractions
Contracts for obtaining Keycloak access tokens. Defines IKeycloakTokenProvider, so consumers can depend on an abstraction instead of the token-acquisition implementation.
Purpose
- Keep Keycloak token-acquisition contracts decoupled from the HTTP implementation.
- Allow other libraries (e.g.
BlogDoFT.Libs.Flagr) and application code to authenticate outgoing requests without depending on Keycloak-specific details.
Usage
Reference this package when you only need to consume IKeycloakTokenProvider (e.g. in application/domain code), and add BlogDoFT.Libs.Keycloak in the composition root to provide the implementation.
public class MyService
{
private readonly IKeycloakTokenProvider _tokenProvider;
public MyService(IKeycloakTokenProvider tokenProvider)
{
_tokenProvider = tokenProvider;
}
public async Task<string> GetTokenAsync(CancellationToken cancellationToken) =>
await _tokenProvider.GetAccessTokenAsync(cancellationToken);
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on BlogDoFT.Libs.Keycloak.Abstractions:
| Package | Downloads |
|---|---|
|
BlogDoFT.Libs.Keycloak
Client-credentials Keycloak token provider and delegating HTTP handler. |
GitHub repositories
This package is not used by any popular GitHub repositories.