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
TestUserStoreThe users.
logger
ILogger<TestUserProfileService>The logger.
- See Also
Fields
Logger
The logger
protected readonly ILogger Logger
Field Value
- See Also
Users
The users
protected readonly TestUserStore Users
Field Value
- 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
ProfileDataRequestContextThe context.
Returns
- 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
IsActiveContextThe context.
Returns
- See Also