Skip to content

blindnet-io/sdk-dotnet-framework-server

Repository files navigation

blindnet encryption engine
.Net Framework SDK

.Net Framework SDK for authentication tokens generation and user management

blindnet.dev

Documentation  •  Submit an Issue  •  Online Chat

About

This is the .Net Framework server-side SDK component of the blindnet encryption engine allowing you to:

  • Generate authentication tokens to allow users to access blindnet.
  • Manage application users and data on blindnet.

Get Started

🚀 Check out our Quick Start Guide to get started in a snap.

Installation

Here you can find NuGet package.

Install with Package Manager:

Install-Package BlindnetSDK-NetFramework -Version 1.0.0

Install with .NET CLI:

Install-Package BlindnetSDK-NetFramework -Version 1.0.0

Usage

Initialization

You need to initialize blindnet SDK before you can use it.

var blindnet = Blindnet.Init(appKey, appId);

There is an optional param to define blindnet API endpoint that SDK will target, by defailt it's set to https://api.blindnet.io.

If you want to change endpoint:

var blindnet = Blindnet.Init(appKey, appId, apiEndpoint);

All SDK methods are availabe from Blindnet instance

var blindnet = Blindnet.Init(appKey, appId, apiEndpoint);
var token = blindnet.CreateUserToken(userId);

Creating user tokens

Two types of tokens are needed: tokens for registered users and temporary tokens.

Create a token for a registered user

Creates a JWT for registered users of your application, usually data receivers.

public string CreateUserToken(string userId, string? groupId)

Create a temporary token

Creates a JWT for non-registered users of your application, usually data senders.

public string CreateTempUserToken(string? groupId)

Deleting data keys

Deletes an encrypted data key from blindnet.

public async Task<bool> ForgetData(string dataId)

Revoking access to user

Deletes all encrypted data keys of a given user.

public async Task<bool> RevokeAccess(string userId)

Deleting user

Deletes a user from blindnet.

public async Task<bool> ForgetUser(string userId)

Delete all users from group

Deletes all users that belong to the group and all their encrypted data keys.

public async Task<bool> ForgetGroup(string groupId)

Contributing

Contributions of all kinds are always welcome!

If you see a bug or room for improvement in this project in particular, please open an issue or directly fork this repository to submit a Pull Request.

If you have any broader questions or suggestions, just open a simple informal DevRel Request, and we'll make sure to quickly find the best solution for you.

Community

All community participation is subject to blindnet’s Code of Conduct. Stay up to date with new releases and projects, learn more about how to protect your privacy and that of our users, and share projects and feedback with our team.

License

The blindnet devkit sdk-dotnet-framework-server is available under MIT (and here is why).

About

blindnet devkit SDK dotnet framework server side

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages