In order to use the Virgil Infrastructure setup your client and implement the required mechanisms using the following guide.
Don't see your language? Virgil is also available as a REST API.
The Virgil .NET PFS is provided as a package named Virgil.PFS. The package is distributed via NuGet package management system.
The package is available for .NET Framework 4.5 and newer.
Installing the package
- Use NuGet Package Manager (Tools -> Library Package Manager -> Package Manager Console)
- Run PM> Install-Package Virgil.PFS -Version 1.0.3-alpha
Obtain an Access Token
When users want to start sending and receiving messages in a browser or mobile device, Virgil can't trust them right away. Clients have to be provided with a unique identity, thus, you'll need to give your users the Access Token that tells Virgil who they are and what they can do.
Each your client must send to you the Access Token request with their registration request. Then, your service that will be responsible for handling access requests must handle them in case of users successful registration on your Application server.
// an example of an Access Token representation
With the Access Token we can initialize the Virgil PFS SDK on the client-side to start doing stuff like sending and receiving messages. To initialize the Virgil PFS SDK on a client-side you need to use the following code:
var virgil = new VirgilApi("[YOUR_ACCESS_TOKEN_HERE]");