fullstackhero / dotnet-microservices-boilerplate

The Ultimate Microservices Starter Kit for .NET Developers!
https://fullstackhero.net/dotnet-microservices-boilerplate/
502 stars 120 forks source link

token validation in microservices #70

Closed devdgupta closed 1 year ago

devdgupta commented 1 year ago

I wanted to add the token validation on the Gateway and each services instead of Identity server but unable to do that. Any Suggestion is highly appreciated.

iammukeshm commented 1 year ago

so, that's already possible for OpenId auth. You can refer to the AddOpenIdAuth extension which is responsible for validating JWTs against an Issuer URL. The configurations are part of the OpenIdOptions in the appsettings.json file.