DefaultPasskeyHandler<TUser>.IsValidOriginAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.