Dela via


IdentityPasskeyOptions.ValidateOrigin Property

Definition

Gets or sets a function that validates the origin of the request.

public Func<Microsoft.AspNetCore.Identity.PasskeyOriginValidationContext,System.Threading.Tasks.ValueTask<bool>>? ValidateOrigin { get; set; }
member this.ValidateOrigin : Func<Microsoft.AspNetCore.Identity.PasskeyOriginValidationContext, System.Threading.Tasks.ValueTask<bool>> with get, set
Public Property ValidateOrigin As Func(Of PasskeyOriginValidationContext, ValueTask(Of Boolean))

Property Value

Remarks

This option applies to both creating a new passkey and requesting an existing passkey.

If left null, cross-origin requests are disallowed, and the request is only considered valid if the request's origin header matches the credential's origin.

Applies to