KeePassPleasantPasswordServerClient 1.1.0

.NET 6.0
Install-Package KeePassPleasantPasswordServerClient -Version 1.1.0
dotnet add package KeePassPleasantPasswordServerClient --version 1.1.0
<PackageReference Include="KeePassPleasantPasswordServerClient" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add KeePassPleasantPasswordServerClient --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: KeePassPleasantPasswordServerClient, 1.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install KeePassPleasantPasswordServerClient as a Cake Addin
#addin nuget:?package=KeePassPleasantPasswordServerClient&version=1.1.0

// Install KeePassPleasantPasswordServerClient as a Cake Tool
#tool nuget:?package=KeePassPleasantPasswordServerClient&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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
.NET net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

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 111 12/11/2021
1.0.13.2 86 12/11/2021
1.0.13.1 93 11/22/2021
1.0.13 95 11/22/2021
1.0.12 91 11/22/2021
1.0.10 84 11/22/2021
1.0.9 89 11/22/2021
1.0.8 91 11/22/2021
1.0.7 92 11/22/2021
1.0.6 94 11/22/2021
1.0.5 90 11/22/2021
1.0.4 88 11/22/2021
1.0.3 88 11/22/2021
1.0.2 94 11/22/2021
1.0.0 95 11/22/2021

Transitioned to .NET 6