Table of Contents

Interface IRedirectUriValidator

Namespace
Duende.IdentityServer.Validation
Assembly
Duende.IdentityServer.dll

Models the logic when validating redirect and post logout redirect URIs.

public interface IRedirectUriValidator

Methods

IsPostLogoutRedirectUriValidAsync(string, Client)

Determines whether a post logout URI is valid for a client.

Task<bool> IsPostLogoutRedirectUriValidAsync(string requestedUri, Client client)

Parameters

requestedUri string

The requested URI.

client Client

The client.

Returns

Task<bool>

true is the URI is valid; false otherwise.

IsRedirectUriValidAsync(RedirectUriValidationContext)

Determines whether a redirect URI is valid for a client.

Task<bool> IsRedirectUriValidAsync(RedirectUriValidationContext context)

Parameters

context RedirectUriValidationContext

Returns

Task<bool>

IsRedirectUriValidAsync(string, Client)

Determines whether a redirect URI is valid for a client.

[Obsolete("This overload is deprecated and will be removed in a future version. Use the overload that takes a RedirectUriValidationContext parameter instead.")]
Task<bool> IsRedirectUriValidAsync(string requestedUri, Client client)

Parameters

requestedUri string

The requested URI.

client Client

The client.

Returns

Task<bool>

true is the URI is valid; false otherwise.