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

## IUriValidator Interface

Decides whether a URI received from a client is acceptable for a given OAuth/OIDC use,
most commonly the redirect URI matching rules of RFC 6749 §3\.1\.2 and the loopback /
custom\-scheme accommodations of RFC 8252 \(OAuth 2\.0 for Native Apps\)\.

```csharp
public interface IUriValidator
```

Derived  
↳ [CompositeUriValidator](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.UriValidation.CompositeUriValidator 'Abblix\.Oidc\.Server\.Features\.UriValidation\.CompositeUriValidator')  
↳ [ExactMatchUriValidator](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.UriValidation.ExactMatchUriValidator 'Abblix\.Oidc\.Server\.Features\.UriValidation\.ExactMatchUriValidator')
### Methods

## IUriValidator\.IsValid\(Uri\) Method {#Abblix.Oidc.Server.Features.UriValidation.IUriValidator.IsValid(System.Uri)}

Validates the specified URI against predefined rules\.

```csharp
bool IsValid(System.Uri uri);
```
#### Parameters

###### `uri` [System\.Uri](https://learn.microsoft.com/en-us/dotnet/api/system.uri 'System\.Uri') {#Abblix.Oidc.Server.Features.UriValidation.IUriValidator.IsValid(System.Uri).uri}

The URI to validate\.

#### Returns
[System\.Boolean](https://learn.microsoft.com/en-us/dotnet/api/system.boolean 'System\.Boolean')  
`true` if the URI meets the validation criteria; otherwise, `false`\.
