Skip to content

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

C#
public sealed class RedirectUriTrustPolicy : Abblix.Oidc.Server.Features.ClientInformation.IRedirectUriTrustPolicy

Inheritance System.Object → RedirectUriTrustPolicy

Implements 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 to its store, or registers its own IRedirectUriTrustPolicy.

Methods

RedirectUriTrustPolicy.IsTrustedAsync(TenantDefinition, ClientInfo) Method

Whether the server may redirect the user agent to the redirect URIs of client with an authorization error.

C#
public System.Threading.Tasks.Task<bool> IsTrustedAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition tenant, Abblix.Oidc.Server.Features.ClientInformation.ClientInfo client);

Parameters

tenant TenantDefinition

The tenant the authorization request is served at.

client ClientInfo

The client the request names, found at that tenant.

Implements IsTrustedAsync(TenantDefinition, ClientInfo)

Returns

System.Threading.Tasks.Task<System.Boolean>
true when the client's redirect URIs are trusted.