daviddesmet / paseto-dotnet

🔑 Paseto.NET, a Paseto (Platform-Agnostic Security Tokens) implementation for .NET
MIT License
99 stars 8 forks source link

Fix token validation #74

Closed lyra95 closed 2 years ago

lyra95 commented 2 years ago

What is this PR?

a bug fix on token validation

Why need this change?

When PasetoTokenValidationParameters is set to ValidateAudience=false and ValidAudience=null, I think the validation should skip and exit early.

daviddesmet commented 2 years ago

Thanks a lot for your contribution, a new version will be available shortly at Nuget.