class GenerateRegistrationOptions

Methods

PublicKeyCredentialCreationOptions
__invoke(Authenticatable $user)

Generate registration options for a user to create a new passkey.

PublicKeyCredentialRpEntity
relyingParty()

Create the relying party entity.

PublicKeyCredentialUserEntity
userEntity(PasskeyUser $user)

Create the user entity for registration.

AuthenticatorSelectionCriteria
authenticatorSelection()

Get the authenticator selection criteria.

array
excludedCredentials(PasskeyUser $user)

Get credentials to exclude from registration. Prevents the same authenticator from being registered twice.

array
supportedAlgorithms()

Get the supported public key credential algorithms.

Details

at line 26
PublicKeyCredentialCreationOptions __invoke(Authenticatable $user)

Generate registration options for a user to create a new passkey.

Parameters

Authenticatable $user

Return Value

PublicKeyCredentialCreationOptions

at line 50
protected PublicKeyCredentialRpEntity relyingParty()

Create the relying party entity.

Return Value

PublicKeyCredentialRpEntity

at line 60
protected PublicKeyCredentialUserEntity userEntity(PasskeyUser $user)

Create the user entity for registration.

Parameters

PasskeyUser $user

Return Value

PublicKeyCredentialUserEntity

at line 74
AuthenticatorSelectionCriteria authenticatorSelection()

Get the authenticator selection criteria.

Return Value

AuthenticatorSelectionCriteria

See also

https://www.w3.org/TR/webauthn-3/#dictdef-authenticatorselectioncriteria

at line 98
array excludedCredentials(PasskeyUser $user)

Get credentials to exclude from registration. Prevents the same authenticator from being registered twice.

Parameters

PasskeyUser $user

Return Value

array

at line 115
array supportedAlgorithms()

Get the supported public key credential algorithms.

Return Value

array