Class TestUserStore
- Namespace
- Duende.IdentityServer.Test
- Assembly
- Duende.IdentityServer.dll
Store for test users
public class TestUserStore- Inheritance
- 
      
      TestUserStore
- Inherited Members
Constructors
TestUserStore(List<TestUser>)
Initializes a new instance of the TestUserStore class.
public TestUserStore(List<TestUser> users)Parameters
Methods
AutoProvisionUser(string, string, List<Claim>)
Automatically provisions a user.
public TestUser AutoProvisionUser(string provider, string userId, List<Claim> claims)Parameters
Returns
CreateUser(string, string, string, string)
Adds a new a user.
public TestUser CreateUser(string username, string password, string name = null, string email = null)Parameters
Returns
FindByExternalProvider(string, string)
Finds the user by external provider.
public TestUser FindByExternalProvider(string provider, string userId)Parameters
Returns
FindBySubjectId(string)
Finds the user by subject identifier.
public TestUser FindBySubjectId(string subjectId)Parameters
- subjectIdstring
- The subject identifier. 
Returns
FindByUsername(string)
Finds the user by username.
public TestUser FindByUsername(string username)Parameters
- usernamestring
- The username. 
Returns
ValidateCredentials(string, string)
Validates the credentials.
public bool ValidateCredentials(string username, string password)