Skip to content
Abblix

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).

C#
public interface IUriValidator

Derived
CompositeUriValidator
ExactMatchUriValidator

Methods

IUriValidator.IsValid(Uri) Method

Validates the specified URI against predefined rules.

C#
bool IsValid(System.Uri uri);

Parameters

uri System.Uri

The URI to validate.

Returns

System.Boolean
true if the URI meets the validation criteria; otherwise, false.