Table of Contents

Class TestUserProfileService

Namespace
Duende.IdentityServer.Test
Assembly
Duende.IdentityServer.dll

Profile service for test users

public class TestUserProfileService : IProfileService
Inheritance
TestUserProfileService
Implements
Inherited Members

Constructors

TestUserProfileService(TestUserStore, ILogger<TestUserProfileService>)

Initializes a new instance of the TestUserProfileService class.

public TestUserProfileService(TestUserStore users, ILogger<TestUserProfileService> logger)

Parameters

users TestUserStore

The users.

logger ILogger<TestUserProfileService>

The logger.

See Also

Fields

Logger

The logger

protected readonly ILogger Logger

Field Value

ILogger
See Also

Users

The users

protected readonly TestUserStore Users

Field Value

TestUserStore
See Also

Methods

GetProfileDataAsync(ProfileDataRequestContext)

This method is called whenever claims about the user are requested (e.g. during token creation or via the userinfo endpoint)

public virtual Task GetProfileDataAsync(ProfileDataRequestContext context)

Parameters

context ProfileDataRequestContext

The context.

Returns

Task
See Also

IsActiveAsync(IsActiveContext)

This method gets called whenever identity server needs to determine if the user is valid or active (e.g. if the user's account has been deactivated since they logged in). (e.g. during token issuance or validation).

public virtual Task IsActiveAsync(IsActiveContext context)

Parameters

context IsActiveContext

The context.

Returns

Task
See Also

See Also