Class DefaultProfileService
- Namespace
- Duende.IdentityServer.Services
- Assembly
- Duende.IdentityServer.dll
Default profile service implementation. This implementation sources all claims from the current subject (e.g. the cookie).
public class DefaultProfileService : IProfileService
- Inheritance
-
DefaultProfileService
- Implements
- Inherited Members
Constructors
DefaultProfileService(ILogger<DefaultProfileService>)
Initializes a new instance of the DefaultProfileService class.
public DefaultProfileService(ILogger<DefaultProfileService> logger)
Parameters
logger
ILogger<DefaultProfileService>The logger.
- See Also
Fields
Logger
The logger
protected readonly ILogger Logger
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