Skip to content

Commit 3d70d3d

Browse files
committed
Add passkey message for domain users
1 parent c29f5fe commit 3d70d3d

4 files changed

Lines changed: 11 additions & 1 deletion

File tree

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ APP_ENV=production
7676
APP_DEBUG=false
7777
APP_TIMEZONE=UTC
7878
APP_URL=
79+
PASSKEY_RELYING_PARTY_ID=
7980

8081
# Trusted proxies / Cloudflare
8182
# Comma-separated list of additional proxies to trust alongside Cloudflare.

config/passkeys.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@
3737
'name' => config('app.name'),
3838
'id' => env(
3939
'PASSKEY_RELYING_PARTY_ID',
40-
parse_url(config('app.url', 'http://localhost'), PHP_URL_HOST) ?: 'localhost'
40+
env(
41+
'PASSKEY_RELAYING_PARTY_ID',
42+
parse_url(config('app.url', 'http://localhost'), PHP_URL_HOST) ?: 'localhost'
43+
)
4144
),
4245
'icon' => null,
4346
],

resources/views/partials/passkey-authenticate.blade.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ class="mt-6"
1313
<span class="mx-4 flex-shrink text-xs uppercase text-gray-500 dark:text-gray-400">or</span>
1414
<div class="flex-grow border-t border-gray-300 dark:border-gray-600"></div>
1515
</div>
16+
<p class="mt-3 text-xs text-gray-500 dark:text-gray-400">
17+
On managed/company devices, platform passkeys may be unavailable due to policy. Use a FIDO2 security key if prompted.
18+
</p>
1619

1720
@if($message = session('authenticatePasskey::message'))
1821
<div class="mt-4 rounded-lg border border-red-200 bg-red-50 p-3 text-sm text-red-700 dark:border-red-700 dark:bg-red-900/20 dark:text-red-300" role="alert">

resources/views/partials/passkeys-manage.blade.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
<p class="text-sm text-gray-600 dark:text-gray-300">
2121
Register a passkey from your security key, browser, or password manager.
2222
</p>
23+
<p class="mt-2 text-xs text-gray-500 dark:text-gray-400">
24+
On managed/company devices, platform passkeys (Windows Hello/PIN) may be disabled by policy. In that case, use a FIDO2 security key or another allowed passkey provider.
25+
</p>
2326

2427
<template x-if="!supported">
2528
<div class="mt-4 rounded-lg border border-yellow-200 bg-yellow-50 p-3 text-sm text-yellow-800 dark:border-yellow-700 dark:bg-yellow-900/20 dark:text-yellow-200">

0 commit comments

Comments
 (0)