PromptConsentDecorator Class
Abblix.Oidc.Server
Abblix.Oidc.Server.Features.Consents
PromptConsentDecorator Class
Honours the OIDC Core §3.1.2.1 prompt=consent parameter by short-circuiting the wrapped
IUserConsentsProvider: when the client explicitly requests consent re-confirmation,
every requested scope and resource is forced into the pending bucket so the consent UI is shown
even if the user previously granted it. For any other prompt value the decorator delegates to the
inner provider unchanged.
public class PromptConsentDecorator : Abblix.Oidc.Server.Features.Consents.IUserConsentsProvider
Inheritance System.Object → PromptConsentDecorator
Implements IUserConsentsProvider
Constructors
PromptConsentDecorator(IUserConsentsProvider) Constructor
Honours the OIDC Core §3.1.2.1 prompt=consent parameter by short-circuiting the wrapped
IUserConsentsProvider: when the client explicitly requests consent re-confirmation,
every requested scope and resource is forced into the pending bucket so the consent UI is shown
even if the user previously granted it. For any other prompt value the decorator delegates to the
inner provider unchanged.
public PromptConsentDecorator(Abblix.Oidc.Server.Features.Consents.IUserConsentsProvider inner);
Parameters
inner IUserConsentsProvider
The wrapped consent provider used when prompt=consent is not requested.
Methods
PromptConsentDecorator.GetUserConsentsAsync(ValidAuthorizationRequest, AuthSession) Method
If the authorization request carries prompt=consent, returns all requested scopes and
resources as Pending to force a fresh consent prompt; otherwise
delegates to the wrapped provider.
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 whose prompt parameter drives the decision.
authSession AuthSession
The current authentication session forwarded to the inner provider.
Implements GetUserConsentsAsync(ValidAuthorizationRequest, AuthSession)