Skip to content

IUserInteractionRequirement Interface

Tells the authorization endpoint whether the end user must complete a step of the host's own before anything is issued to them: accepting a new version of the terms, a mandatory password change, completing a profile.

C#
public interface IUserInteractionRequirement

Derived
↳ NoUserInteractionRequirement

Remarks

The endpoint asks once a single session answers the request, and before it reads the consents, so a step is completed before the end user grants anything. A required step sends the end user to the tenant's interaction page, TenantDefinition.InteractionUri, with InteractionRequired, and answers the client with interaction_required when the request carries prompt=none (OpenID Connect Core 1.0, section 3.1.2.6).

The host records that the step is completed, and the request coming back from the interaction page is answered that no step is required. Completing a step by signing the end user in again would move the authentication time without anyone having authenticated, and a request's max_age would then accept a session it should send to the login page.

Neither the device authorization grant nor CIBA asks this: on both the host already runs the end user's approval, on its verification page or on the authentication device, and puts any step of its own there.

The server asks the same implementation for every tenant and hands it the tenant the request is served at; a host keeping its steps per tenant answers for that tenant.

Methods

IUserInteractionRequirement.IsRequiredAsync(TenantDefinition, ValidAuthorizationRequest, AuthSession) Method

Whether the end user of authSession must complete a step before request is authorized.

C#
System.Threading.Tasks.Task<bool> IsRequiredAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition tenant, Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.ValidAuthorizationRequest request, Abblix.Oidc.Server.Features.UserAuthentication.AuthSession authSession);

Parameters

tenant TenantDefinition

The tenant the request is served at.

request ValidAuthorizationRequest

The validated authorization request.

authSession AuthSession

The session selected to answer the request.

Returns

System.Threading.Tasks.Task<System.Boolean>