Mocking authorization tokens with WireMock.NET

28 lut 2024 | Blog | programowanie | .net | c# | IT
Testing applications that require authorization presents a unique set of challenges, especially when it comes to simulating different user permissions. Using an actual authorization server and manually creating test users with specific roles and claims can quickly become cumbersome when trying to cover a wide range of permission combinations. Another option is to use libraries like fake-authentication-jwtbearer, but these libraries have a significant drawback. They replace the actual authorization logic, so we are not testing what will actually be used on production.

POSTY TEGO AUTORA

Visualizing Test Execution with OpenTelemetry4 maj 2025

Blog | programowanie | .net | c# | IT

Structuring Test Projects for Maintainability1 maj 2025

Blog | programowanie | testowanie | software design | IT

How to Run a React Development Server with HTTPS4 sty 2025

Blog | programowanie | .net | react | IT

C# code snippets for Resharper and Rider9 lut 2024

Blog | programowanie | .net | c# | IT

The fastest way to create WireMock.NET mappings27 sty 2024

Blog | programowanie | .net | c# | IT

Cezary Piątek Blog

Cezary Piątek