Skip to content

AuthHelper

Namespace: LoadTests.Infrastructure

Helper class for handling authentication in load tests

public class AuthHelper : System.IDisposable

Inheritance ObjectAuthHelper

Implements IDisposable

Constructors

AuthHelper(String)

Initializes a new instance of the AuthHelper class

public AuthHelper(string baseUrl)

Parameters

baseUrl String

Base URL for the authentication API

Methods

Dispose()

Disposes of the HTTP client resources

public void Dispose()

GetAuthTokenAsync()

Gets an authentication token for load testing

public Task<String> GetAuthTokenAsync()

Returns

JWT token string or null if authentication fails