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

## IRedirectUriTrustPolicy Interface

Decides whether the authorization endpoint may send the user agent to a client's registered redirect URIs on its
own, with an error the end user did not choose\.

```csharp
public interface IRedirectUriTrustPolicy
```

Derived  
↳ [RedirectUriTrustPolicy](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.ClientInformation.RedirectUriTrustPolicy 'Abblix\.Oidc\.Server\.Features\.ClientInformation\.RedirectUriTrustPolicy')

### Remarks
RFC 9700 section 4\.11\.2: whoever registers a client registers its redirect URI too, and an erroneous request, a
declined consent or a silent request \(`prompt=none`\) would then have the server redirect the user agent there\.
"Based on its risk assessment, the authorization server needs to decide whether or not it can trust the redirection
URI", and it "SHOULD only automatically redirect the user agent if it trusts the redirection URI"\. An authorization
error for a client this policy does not trust is answered by the server itself, with status 400 and the error in
the body, rather than at the client's redirect URI; a successful authorization still reaches the client, since it
follows the end user's own consent to that client\.

The default, [RedirectUriTrustPolicy](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.ClientInformation.RedirectUriTrustPolicy 'Abblix\.Oidc\.Server\.Features\.ClientInformation\.RedirectUriTrustPolicy'), trusts every client but an untrusted one. A host registering
its own implementation decides by its own assessment, the source of the client or what is known of its URIs.
### Methods

## IRedirectUriTrustPolicy\.IsTrustedAsync\(TenantDefinition, ClientInfo\) Method {#Abblix.Oidc.Server.Features.ClientInformation.IRedirectUriTrustPolicy.IsTrustedAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,Abblix.Oidc.Server.Features.ClientInformation.ClientInfo)}

Whether the server may redirect the user agent to the redirect URIs of [client](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.ClientInformation.IRedirectUriTrustPolicy#Abblix.Oidc.Server.Features.ClientInformation.IRedirectUriTrustPolicy.IsTrustedAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,Abblix.Oidc.Server.Features.ClientInformation.ClientInfo).client 'Abblix\.Oidc\.Server\.Features\.ClientInformation\.IRedirectUriTrustPolicy\.IsTrustedAsync\(Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantDefinition, Abblix\.Oidc\.Server\.Features\.ClientInformation\.ClientInfo\)\.client') with an
authorization error\.

```csharp
System.Threading.Tasks.Task<bool> IsTrustedAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition tenant, Abblix.Oidc.Server.Features.ClientInformation.ClientInfo client);
```
#### 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.ClientInformation.IRedirectUriTrustPolicy.IsTrustedAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,Abblix.Oidc.Server.Features.ClientInformation.ClientInfo).tenant}

The tenant the authorization request is served at\.

###### `client` [ClientInfo](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.ClientInformation.ClientInfo 'Abblix\.Oidc\.Server\.Features\.ClientInformation\.ClientInfo') {#Abblix.Oidc.Server.Features.ClientInformation.IRedirectUriTrustPolicy.IsTrustedAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,Abblix.Oidc.Server.Features.ClientInformation.ClientInfo).client}

The client the request names, found at that tenant\.

#### 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')  
`true` when the client's redirect URIs are trusted\.
