.Net Framework SDK for authentication tokens generation and user management
Documentation
•
Submit an Issue
•
Online Chat
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.
🚀 Check out our Quick Start Guide to get started in a snap.
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
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);
Two types of tokens are needed: tokens for registered users and temporary tokens.
Creates a JWT for registered users of your application, usually data receivers.
public string CreateUserToken(string userId, string? groupId)
Creates a JWT for non-registered users of your application, usually data senders.
public string CreateTempUserToken(string? groupId)
Deletes an encrypted data key from blindnet.
public async Task<bool> ForgetData(string dataId)
Deletes all encrypted data keys of a given user.
public async Task<bool> RevokeAccess(string userId)
Deletes a user from blindnet.
public async Task<bool> ForgetUser(string userId)
Deletes all users that belong to the group and all their encrypted data keys.
public async Task<bool> ForgetGroup(string groupId)
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.
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.
- Join our Slack Workspace to chat with the blindnet community and team
- Follow us on Twitter to stay up to date with the latest news
- Check out our Openness Framework and Product Management on Github to see how we operate and give us feedback.
The blindnet devkit sdk-dotnet-framework-server is available under MIT (and here is why).