Skip to content

A .NET 8 web api that provides JWT authentication to our frontend and routes to accept SDK benchmarks.

License

Notifications You must be signed in to change notification settings

Cryptographic-API-Services/cas-api

Repository files navigation

eas-api

image

Environment Description

This is a .NET 8.0 Web API. Authentication is hand written using JWT Tokens which are signed with an individual ECC 521 key pair and the storage mechanism is a MongoDB database to allow for easy schema changes during development. This project contains the front-end routes for our SPA interface. The website allows user's to make an account and verify it to obtain access to a API key for development or production. The API key is pluggable into the C# SDK in the following way, when consuming the SDK benchmarks are sent to the main website and users can view their benchmarks in a chart.

using CasDotnetSdk;

CASConfiguration.IsDevelopment = true;
CASConfiguration.ApiKey = "FV0mg+D/1JXh9oX07nQGJld+1jLQ6vkve4ZTpzhg2cRGuSt4JgTXfcLznHcdqAN+jp8YBz/0xgR1xJ3mQhtuBQ==";

We use Infisical for secret management mostly for our environment variables. There are gathered from infisical at runtime and injected into the C# Environment here. The project isn't going to work correctly without these secrets. If you are interested in contributing get ahold of me and we can figure something out.

SDKs Currently In Development

C# JavaScript Python

About

A .NET 8 web api that provides JWT authentication to our frontend and routes to accept SDK benchmarks.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published