An open API service indexing awesome lists of open source software.

https://github.com/i-rzr-i/onetimerequesttoken

Provide a simple solution to protect the application endpoint from untrusted or unwanted requests by supplying every invoked endpoint with a generated security code.
https://github.com/i-rzr-i/onetimerequesttoken

antiforgery code endpoint http protect secure token

Last synced: 4 months ago
JSON representation

Provide a simple solution to protect the application endpoint from untrusted or unwanted requests by supplying every invoked endpoint with a generated security code.

Awesome Lists containing this project

README

          

> **Note** This repository is developed using .netstandard2.0.

| Name | Details |
|----------|----------|
| OneTimeRequestToken | [![NuGet Version](https://img.shields.io/nuget/v/OneTimeRequestToken.svg?style=flat&logo=nuget)](https://www.nuget.org/packages/OneTimeRequestToken/) [![Nuget Downloads](https://img.shields.io/nuget/dt/OneTimeRequestToken.svg?style=flat&logo=nuget)](https://www.nuget.org/packages/OneTimeRequestToken)|

The base idea of the current repository is to provide in some cases a secure way to call application endpoints. So from the repository name, you can understand that the core is to generate a token for every application URL.

In the basic flow, you generate a token for an endpoint, and then before executing a request to the resource, you must add to the header generated token.

In the current implementation request validation is realized with a middleware. By default, middleware will search for a token in every request sent with `HTTP` method = `POST`.
Also, validation will be triggered by a `GET` request if in the HTTP header, the token is found.

To understand more efficiently how you can use available functionalities please consult the [using documentation/file](docs/usage.md).

**In case you wish to use it in your project, u can install the package from nuget.org** or specify what version you want:

> `Install-Package OneTimeRequestToken -Version x.x.x.x`

## Content
1. [USING](docs/usage.md)
1. [CHANGELOG](docs/CHANGELOG.md)
1. [BRANCH-GUIDE](docs/branch-guide.md)