JWT Guard #38
wcabus
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
That's pretty cool! Thanks for sharing @wcabus! This makes me wonder if it would also make sense to have a similar setup for the client, e.g. to check the configuration in terms of flow to use, secrets, audience, ... is configured correctly. (though this is probably more of an integration test scenario) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
JWT Guard is a free, open source, integration test suite written in C# for testing the security of JSON Web Token (JWT) implementations. Using a
dotnet new
template, you can easily add an JWT Guard integration test project to your existing ASP.NET Core Web API if it uses access tokens for gaining access to your API's resources.At this moment, the tests will verify:
jwk
,jku
,x5c
andx5u
claims)The test suite uses Duende IdentityServer currently only to generate signature key material and to allow the API to find the public keys using the
.well-known
endpoint, but you could add additional tests which make use of Duende's additional capabilities (refreshing tokens, validating against replay attacks, ...)If you want to give JWT Guard a go, head over to https://jwtguard.net for more documentation or https://github.com/wcabus/jwt-guard for the source code 🙂
Beta Was this translation helpful? Give feedback.
All reactions