NullConsentService Class
Abblix.Oidc.Server
Abblix.Oidc.Server.Features.Consents
NullConsentService Class
Default no-op consent provider that auto-grants every requested scope and resource and never marks consent as pending. Suitable for trusted first-party deployments and as the starting placeholder during integration; replace with a host-supplied implementation to honour OIDC Core §3.1.2.4 (authorization server obtains end-user consent).
public class NullConsentService : Abblix.Oidc.Server.Features.Consents.IUserConsentsProvider
Inheritance System.Object → NullConsentService
Implements IUserConsentsProvider
Methods
NullConsentService.GetUserConsentsAsync(ValidAuthorizationRequest, AuthSession) Method
Returns a UserConsents with every requested scope and resource pre-granted and nothing pending, so the authorization flow can proceed without prompting the user.
public 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 for which to retrieve consents.
authSession AuthSession
The authentication session associated with the request.
Implements GetUserConsentsAsync(ValidAuthorizationRequest, AuthSession)
Returns
System.Threading.Tasks.Task<UserConsents>
NullConsentService.IsConsentRequired(ValidAuthorizationRequest, AuthSession) Method
Returns false for every request because GetUserConsentsAsync(ValidAuthorizationRequest, AuthSession) grants
everything up-front and leaves Pending empty.
public System.Threading.Tasks.Task<bool> IsConsentRequired(Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.ValidAuthorizationRequest request, Abblix.Oidc.Server.Features.UserAuthentication.AuthSession authSession);
Parameters
request ValidAuthorizationRequest
The validated authorization request that might require consent.
authSession AuthSession
The authentication session associated with the request.