Share via


DefaultPasskeyHandler<TUser>.IsValidOriginAsync Method

Definition

Determines whether the specified origin is valid for passkey operations.

protected virtual System.Threading.Tasks.Task<bool> IsValidOriginAsync(Microsoft.AspNetCore.Identity.PasskeyOriginInfo originInfo, Microsoft.AspNetCore.Http.HttpContext httpContext);
abstract member IsValidOriginAsync : Microsoft.AspNetCore.Identity.PasskeyOriginInfo * Microsoft.AspNetCore.Http.HttpContext -> System.Threading.Tasks.Task<bool>
override this.IsValidOriginAsync : Microsoft.AspNetCore.Identity.PasskeyOriginInfo * Microsoft.AspNetCore.Http.HttpContext -> System.Threading.Tasks.Task<bool>
Protected Overridable Function IsValidOriginAsync (originInfo As PasskeyOriginInfo, httpContext As HttpContext) As Task(Of Boolean)

Parameters

originInfo
PasskeyOriginInfo

Information about the passkey's origin.

httpContext
HttpContext

The HTTP context for the request.

Returns

true if the origin is valid; otherwise, false.

Applies to