diff --git a/.env.example b/.env.example index 63cb47e80..c1cacdeac 100644 --- a/.env.example +++ b/.env.example @@ -76,6 +76,7 @@ APP_ENV=production APP_DEBUG=false APP_TIMEZONE=UTC APP_URL= +PASSKEY_RELYING_PARTY_ID= # Trusted proxies / Cloudflare # Comma-separated list of additional proxies to trust alongside Cloudflare. diff --git a/config/passkeys.php b/config/passkeys.php index 35084080d..6058e3edd 100644 --- a/config/passkeys.php +++ b/config/passkeys.php @@ -37,7 +37,10 @@ return [ 'name' => config('app.name'), 'id' => env( 'PASSKEY_RELYING_PARTY_ID', - parse_url(config('app.url', 'http://localhost'), PHP_URL_HOST) ?: 'localhost' + env( + 'PASSKEY_RELAYING_PARTY_ID', + parse_url(config('app.url', 'http://localhost'), PHP_URL_HOST) ?: 'localhost' + ) ), 'icon' => null, ], diff --git a/resources/views/partials/passkey-authenticate.blade.php b/resources/views/partials/passkey-authenticate.blade.php index 7316ad245..acdff1c68 100644 --- a/resources/views/partials/passkey-authenticate.blade.php +++ b/resources/views/partials/passkey-authenticate.blade.php @@ -13,6 +13,9 @@ or
+

+ On managed/company devices, platform passkeys may be unavailable due to policy. Use a FIDO2 security key if prompted. +

@if($message = session('authenticatePasskey::message'))