Interface IWebLoginStrategy
An application-owned login flow applied by LoginAsAttribute<TStrategy>. Define one implementation per distinct way your application logs a user in (driving the real login page, calling an API and injecting a token, loading captured storage state, impersonation, ...); nothing about ProtoTest constrains how many you have or what they're named.
public interface IWebLoginStrategy
- Extension Methods
Methods
LoginAsync(WebLoginContext, CancellationToken)
ValueTask LoginAsync(WebLoginContext context, CancellationToken cancellationToken = default)
Parameters
contextWebLoginContextcancellationTokenCancellationToken