Class TestUserCredentials
Credentials for a named test user in an Azure Entra ID test tenant. Used with MsalTestOptions to configure E2E integration tests that authenticate with real JWT tokens.
public sealed class TestUserCredentials
- Inheritance
-
TestUserCredentials
- Inherited Members
- Extension Methods
Properties
ExpectedPermissions
The permissions this user is expected to have after authentication. Useful for test assertions to verify role-to-permission mapping.
public string[] ExpectedPermissions { get; set; }
Property Value
- string[]
Password
The user's password. Store in user-secrets or CI/CD secrets — never in source code.
public string Password { get; set; }
Property Value
Username
The user's UPN or email (e.g., "salesrep@contoso.onmicrosoft.com").
public string Username { get; set; }