KeePassPleasantPasswordServerClient 1.1.0
dotnet add package KeePassPleasantPasswordServerClient --version 1.1.0
NuGet\Install-Package KeePassPleasantPasswordServerClient -Version 1.1.0
<PackageReference Include="KeePassPleasantPasswordServerClient" Version="1.1.0" />
<PackageVersion Include="KeePassPleasantPasswordServerClient" Version="1.1.0" />
<PackageReference Include="KeePassPleasantPasswordServerClient" />
paket add KeePassPleasantPasswordServerClient --version 1.1.0
#r "nuget: KeePassPleasantPasswordServerClient, 1.1.0"
#:package KeePassPleasantPasswordServerClient@1.1.0
#addin nuget:?package=KeePassPleasantPasswordServerClient&version=1.1.0
#tool nuget:?package=KeePassPleasantPasswordServerClient&version=1.1.0
What is it?
It is a simple package enabling You to grab basic information from a KeePass server that You or Your organisation is hosting. Data that You can get is a login and a password.
Ideal solution for having a centralised password storage for a single person or whole company. Store Your passwords on a server and let Your services / apps ask for them when needed.
Supported frameworks
This library requires .NET 6.
From version 1.1.0.0 onwards .NET 5 version of this software became legacy. Code for it is located here.
Prerequisites
A loaded json file injected into IConfiguraion containing following data:
"KeePass": {
"BaseAddress": "correct address to KeePass instannce ended with '/'",
"TokenEndpoint": "OAuth2/Token",
"RestEndpoint": "api/v4/rest/credential/",
"Username": "KeePass username",
"Password": "KeePass password"
}
If there is no loaded json file - those settings can be injected when setting up a Dependency Injection.
Dependency injection setup
Example uses Microsoft NET 6.0 DI container.
This project contains simplified DI installation method called SetupKeePassServices(), that takes IConfiguration as a parameter.
Optionally, if you wish to replace / override settings from json file mentioned earlier, you can give it additional optional parameter KeePassSettings.
Settings from this object will supersede those from json.
This is the whole setup.
No Dependency injection container setup
'New up' KeePassService and in place of IHttpClientFactory insert NoDiHttpClientFactory object - this will provide KeePassService
with proper HttpClient (singleton).
Usage
Inject IKeePassService into any object you want.
Use async AskForSecret(string guid) method to retrieve a secret containg username / password corresponding to given guid.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net6.0
- Microsoft.Extensions.Configuration.Binder (>= 6.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Http (>= 6.0.0)
- Microsoft.Extensions.Http.Polly (>= 6.0.0)
- Polly (>= 7.2.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.0 | 550 | 12/11/2021 |
| 1.0.13.2 | 392 | 12/11/2021 |
| 1.0.13.1 | 396 | 11/22/2021 |
| 1.0.13 | 422 | 11/22/2021 |
| 1.0.12 | 418 | 11/22/2021 |
| 1.0.10 | 409 | 11/22/2021 |
| 1.0.9 | 410 | 11/22/2021 |
| 1.0.8 | 423 | 11/22/2021 |
| 1.0.7 | 427 | 11/22/2021 |
| 1.0.6 | 426 | 11/22/2021 |
| 1.0.5 | 420 | 11/22/2021 |
| 1.0.4 | 409 | 11/22/2021 |
| 1.0.3 | 414 | 11/22/2021 |
| 1.0.2 | 410 | 11/22/2021 |
| 1.0.0 | 420 | 11/22/2021 |
Transitioned to .NET 6