Table of Contents

Interface ITestUserStore

Namespace
Fdyay.IdentityServer.Test
Assembly
Fdyay.IdentityServer.Core.dll

Looks up, validates, and provisions development/test users.

public interface ITestUserStore

Methods

AutoProvisionUser(string, string, IEnumerable<Claim>)

Creates and links a new local user from an external provider identity.

TestUser AutoProvisionUser(string provider, string providerSubjectId, IEnumerable<Claim> claims)

Parameters

provider string
providerSubjectId string
claims IEnumerable<Claim>

Returns

TestUser

FindByExternalProvider(string, string)

Finds a user previously linked to an external provider identity.

TestUser? FindByExternalProvider(string provider, string providerSubjectId)

Parameters

provider string
providerSubjectId string

Returns

TestUser

FindBySubjectId(string)

Finds a user by subject identifier.

TestUser? FindBySubjectId(string subjectId)

Parameters

subjectId string

The subject identifier, the sub claim.

Returns

TestUser

The user, or null when there is none.

FindByUsername(string)

Finds a user by username.

TestUser? FindByUsername(string username)

Parameters

username string

The username.

Returns

TestUser

The user, or null when there is none.

ValidateCredentials(string, string)

Checks a username and password for a local sign-in.

TestUser? ValidateCredentials(string username, string password)

Parameters

username string

The username entered.

password string

The password entered.

Returns

TestUser

The user, when the user is active and the password matches; otherwise null.