IUserConsentsProvider Interface
Abblix.Oidc.Server
Abblix.Oidc.Server.Features.Consents
IUserConsentsProvider Interface
Defines an interface for a service that provides user consents. This service is responsible for retrieving and managing user consent decisions related to authorization requests. It ensures that the application adheres to user preferences and legal requirements concerning data access and processing.
public interface IUserConsentsProvider
Derived
↳ NullConsentService
↳ PromptConsentDecorator
Methods
IUserConsentsProvider.GetUserConsentsAsync(ValidAuthorizationRequest, AuthSession) Method
Asynchronously retrieves the user consents for a given authorization request and authentication session. This method is essential for determining which scopes and resources the user has consented to, enabling the application to respect user permissions and comply with data protection regulations.
System.Threading.Tasks.Task<Abblix.Oidc.Server.Features.Consents.UserConsents> GetUserConsentsAsync(Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.ValidAuthorizationRequest request, Abblix.Oidc.Server.Features.UserAuthentication.AuthSession authSession);
Parameters
request ValidAuthorizationRequest
The validated authorization request containing the scopes and resources for which consent may be required.
authSession AuthSession
The current authentication session that provides context about the authenticated user, potentially influencing consent retrieval based on the user's settings or previous consent decisions.
Returns
System.Threading.Tasks.Task<UserConsents>
A task that resolves to an instance of UserConsents, containing detailed information
about the consents granted or denied by the user.