KeePassPleasantPasswordServerClient 1.0.5
See the version list below for details.
dotnet add package KeePassPleasantPasswordServerClient --version 1.0.5
NuGet\Install-Package KeePassPleasantPasswordServerClient -Version 1.0.5
<PackageReference Include="KeePassPleasantPasswordServerClient" Version="1.0.5" />
paket add KeePassPleasantPasswordServerClient --version 1.0.5
#r "nuget: KeePassPleasantPasswordServerClient, 1.0.5"
// Install KeePassPleasantPasswordServerClient as a Cake Addin #addin nuget:?package=KeePassPleasantPasswordServerClient&version=1.0.5 // Install KeePassPleasantPasswordServerClient as a Cake Tool #tool nuget:?package=KeePassPleasantPasswordServerClient&version=1.0.5
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.
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 5.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 | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. 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. |
-
net5.0
- Microsoft.Extensions.Configuration.Binder (>= 5.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 5.0.0)
- Microsoft.Extensions.Http (>= 5.0.0)
- Microsoft.Extensions.Http.Polly (>= 5.0.0)
- Polly (>= 7.2.1)
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 | 379 | 12/11/2021 |
1.0.13.2 | 272 | 12/11/2021 |
1.0.13.1 | 274 | 11/22/2021 |
1.0.13 | 301 | 11/22/2021 |
1.0.12 | 299 | 11/22/2021 |
1.0.10 | 287 | 11/22/2021 |
1.0.9 | 291 | 11/22/2021 |
1.0.8 | 304 | 11/22/2021 |
1.0.7 | 308 | 11/22/2021 |
1.0.6 | 306 | 11/22/2021 |
1.0.5 | 299 | 11/22/2021 |
1.0.4 | 290 | 11/22/2021 |
1.0.3 | 295 | 11/22/2021 |
1.0.2 | 292 | 11/22/2021 |
1.0.0 | 298 | 11/22/2021 |