Skip to content

r-manimaran/dotnet-multiple-jwt-token-authentication

Repository files navigation

Multi JWT Auth to a single .net Web API

This .net project uses multiple jwt token for authentication in the same web api poject. Uses from any of the below two providers can login to the app and access the endpoints.

  1. Keycloak Authentication
  2. Supabase Authetication

Install the packages:

  • Microsoft.AspNetCore.Authentication.JwtBearer

Get Keycloak Jwt using Postman

alt text

KeyCloak authentication in .Net app with Access Token

alt text

Get Supabase Token using Postman

alt text

Supbase authentication in .Net app with Token

alt text

Adding Custom Claim to have the Source provider information

alt text

alt text

About

Using Multiple JWT token authentication in the same .net web api project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages