#### [Abblix\.Oidc\.Server](https://www.abblix.com/en/docs/api/abblix-oidc-server 'index')
### [Abblix\.Oidc\.Server\.Endpoints\.Authorization\.Interfaces](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Endpoints.Authorization.Interfaces 'Abblix\.Oidc\.Server\.Endpoints\.Authorization\.Interfaces')

## IAuthorizationResponseEncoder Interface

Applies the protocol\-level encoding of an authorization response in the framework\-agnostic core:
the `iss` \(RFC 9207\) and implicit/hybrid `scope` gating, and — when the client requested
a JARM \(`*.jwt`\) response mode — packing all response parameters into the `response` JWT
and resolving the plaintext delivery mode\.

```csharp
public interface IAuthorizationResponseEncoder
```

Derived  
↳ [AuthorizationResponseEncoder](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Endpoints.Authorization.AuthorizationResponseEncoder 'Abblix\.Oidc\.Server\.Endpoints\.Authorization\.AuthorizationResponseEncoder')

### Remarks
Invoked from [IAuthorizationHandler](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.IAuthorizationHandler 'Abblix\.Oidc\.Server\.Endpoints\.Authorization\.Interfaces\.IAuthorizationHandler') after the full request\-processing chain \(including
the session\-management decorator that sets `session_state`\) has completed, so the JWT captures
the final parameter set\. It mutates the response in place: [SuccessfullyAuthenticated](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.SuccessfullyAuthenticated 'Abblix\.Oidc\.Server\.Endpoints\.Authorization\.Interfaces\.SuccessfullyAuthenticated')
and [AuthorizationError](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.AuthorizationError 'Abblix\.Oidc\.Server\.Endpoints\.Authorization\.Interfaces\.AuthorizationError') gain their `Issuer`/`Scope`/`ResponseJwt` and a
resolved `ResponseMode`\. Interaction responses \(login/consent/etc\.\) and non\-redirectable errors
are left untouched\. The transport layer then only maps the encoded response onto its wire DTO\.
### Methods

## IAuthorizationResponseEncoder\.EncodeAsync\(AuthorizationResponse\) Method {#Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.IAuthorizationResponseEncoder.EncodeAsync(Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.AuthorizationResponse)}

Encodes the supplied authorization response in place\. No\-op for response types that are not
delivered to the client's redirect URI\.

```csharp
System.Threading.Tasks.Task EncodeAsync(Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.AuthorizationResponse response);
```
#### Parameters

###### `response` [AuthorizationResponse](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.AuthorizationResponse 'Abblix\.Oidc\.Server\.Endpoints\.Authorization\.Interfaces\.AuthorizationResponse') {#Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.IAuthorizationResponseEncoder.EncodeAsync(Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.AuthorizationResponse).response}

The processed authorization response to encode\.

#### Returns
[System\.Threading\.Tasks\.Task](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task 'System\.Threading\.Tasks\.Task')
