#### [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')

## RedirectUriTrustPolicy Class

Trusts the redirect URIs of a client somebody answering for the deployment let in, and of no other, as the
client's record says: [Trust](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.ClientInformation.ClientInfo#Abblix.Oidc.Server.Features.ClientInformation.ClientInfo.Trust 'Abblix\.Oidc\.Server\.Features\.ClientInformation\.ClientInfo\.Trust'), decided when the client was created\. RFC 9700 section 4\.11\.2
names "the source of the redirection URI and other client data" among what the decision takes into account\.

```csharp
public sealed class RedirectUriTrustPolicy : Abblix.Oidc.Server.Features.ClientInformation.IRedirectUriTrustPolicy
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → RedirectUriTrustPolicy

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

### Remarks
It reads the record alone, never the settings the server runs with now, so every replica serving a client from a
shared store gives the same answer, and a later change of the settings leaves the clients created before it as
they were\. A host deciding otherwise writes the client's [Trust](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.ClientInformation.ClientInfo#Abblix.Oidc.Server.Features.ClientInformation.ClientInfo.Trust 'Abblix\.Oidc\.Server\.Features\.ClientInformation\.ClientInfo\.Trust') to its store, or registers
its own [IRedirectUriTrustPolicy](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.ClientInformation.IRedirectUriTrustPolicy 'Abblix\.Oidc\.Server\.Features\.ClientInformation\.IRedirectUriTrustPolicy')\.
### Methods

## RedirectUriTrustPolicy\.IsTrustedAsync\(TenantDefinition, ClientInfo\) Method {#Abblix.Oidc.Server.Features.ClientInformation.RedirectUriTrustPolicy.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.RedirectUriTrustPolicy#Abblix.Oidc.Server.Features.ClientInformation.RedirectUriTrustPolicy.IsTrustedAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,Abblix.Oidc.Server.Features.ClientInformation.ClientInfo).client 'Abblix\.Oidc\.Server\.Features\.ClientInformation\.RedirectUriTrustPolicy\.IsTrustedAsync\(Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantDefinition, Abblix\.Oidc\.Server\.Features\.ClientInformation\.ClientInfo\)\.client') with an
authorization error\.

```csharp
public 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.RedirectUriTrustPolicy.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.RedirectUriTrustPolicy.IsTrustedAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,Abblix.Oidc.Server.Features.ClientInformation.ClientInfo).client}

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

Implements [IsTrustedAsync\(TenantDefinition, ClientInfo\)](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) 'Abblix\.Oidc\.Server\.Features\.ClientInformation\.IRedirectUriTrustPolicy\.IsTrustedAsync\(Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantDefinition, Abblix\.Oidc\.Server\.Features\.ClientInformation\.ClientInfo\)')

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