Skip to content

gitViwe/JWTAuthentication

Repository files navigation

JWT Authentication for HTTP APIs

JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. This information can be verified and trusted because it is digitally signed.

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

Things you need to use the software and how to install them.

Installation

  1. Clone the repo
    git clone https://github.com/gitViwe/JWTAuthentication.git
  2. Generate certificate. Starting a container with https support using docker compose
    dotnet dev-certs https -ep .aspnet\https\aspnetapp.pfx -p password!
    dotnet dev-certs https --trust
    
  3. Run via Docker
    docker compose up --build -d
    

Explore the Swagger API documentation: HTTP endpoint or HTTPS endpoint

OpenTelemetry integration with Jeager UI: localhost:16686

About

.NET API Authentication with JSON Web Tokens

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published