#### [Abblix\.Oidc\.Server](https://www.abblix.com/docs/api/abblix-oidc-server 'index')
### [Abblix\.Oidc\.Server\.Features\.UserInteraction](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.UserInteraction 'Abblix\.Oidc\.Server\.Features\.UserInteraction')

## 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\.

```csharp
public interface IUserInteractionRequirement
```

Derived  
↳ [NoUserInteractionRequirement](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.UserInteraction.NoUserInteractionRequirement 'Abblix\.Oidc\.Server\.Features\.UserInteraction\.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](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.InteractionRequired 'Abblix\.Oidc\.Server\.Endpoints\.Authorization\.Interfaces\.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 {#Abblix.Oidc.Server.Features.UserInteraction.IUserInteractionRequirement.IsRequiredAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.ValidAuthorizationRequest,Abblix.Oidc.Server.Features.UserAuthentication.AuthSession)}

Whether the end user of [authSession](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.UserInteraction.IUserInteractionRequirement#Abblix.Oidc.Server.Features.UserInteraction.IUserInteractionRequirement.IsRequiredAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.ValidAuthorizationRequest,Abblix.Oidc.Server.Features.UserAuthentication.AuthSession).authSession 'Abblix\.Oidc\.Server\.Features\.UserInteraction\.IUserInteractionRequirement\.IsRequiredAsync\(Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantDefinition, Abblix\.Oidc\.Server\.Endpoints\.Authorization\.Interfaces\.ValidAuthorizationRequest, Abblix\.Oidc\.Server\.Features\.UserAuthentication\.AuthSession\)\.authSession') must complete a step before
[request](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.UserInteraction.IUserInteractionRequirement#Abblix.Oidc.Server.Features.UserInteraction.IUserInteractionRequirement.IsRequiredAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.ValidAuthorizationRequest,Abblix.Oidc.Server.Features.UserAuthentication.AuthSession).request 'Abblix\.Oidc\.Server\.Features\.UserInteraction\.IUserInteractionRequirement\.IsRequiredAsync\(Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantDefinition, Abblix\.Oidc\.Server\.Endpoints\.Authorization\.Interfaces\.ValidAuthorizationRequest, Abblix\.Oidc\.Server\.Features\.UserAuthentication\.AuthSession\)\.request') is authorized\.

```csharp
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](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantDefinition') {#Abblix.Oidc.Server.Features.UserInteraction.IUserInteractionRequirement.IsRequiredAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.ValidAuthorizationRequest,Abblix.Oidc.Server.Features.UserAuthentication.AuthSession).tenant}

The tenant the request is served at\.

###### `request` [ValidAuthorizationRequest](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.ValidAuthorizationRequest 'Abblix\.Oidc\.Server\.Endpoints\.Authorization\.Interfaces\.ValidAuthorizationRequest') {#Abblix.Oidc.Server.Features.UserInteraction.IUserInteractionRequirement.IsRequiredAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.ValidAuthorizationRequest,Abblix.Oidc.Server.Features.UserAuthentication.AuthSession).request}

The validated authorization request\.

###### `authSession` [AuthSession](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.UserAuthentication.AuthSession 'Abblix\.Oidc\.Server\.Features\.UserAuthentication\.AuthSession') {#Abblix.Oidc.Server.Features.UserInteraction.IUserInteractionRequirement.IsRequiredAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.ValidAuthorizationRequest,Abblix.Oidc.Server.Features.UserAuthentication.AuthSession).authSession}

The session selected to answer the request\.

#### Returns
[System\.Threading\.Tasks\.Task&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')[System\.Boolean](https://learn.microsoft.com/en-us/dotnet/api/system.boolean 'System\.Boolean')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')
