# 500 Internal Server ErrorがPasskeysとDiscourseConnectで発生

**URL:** https://meta.discourse.org/t/500-internal-server-error-with-passkeys-and-discourseconnect/323877
**Category:** Bug
**Tags:** passkey, fixed
**Created:** [2024 年 8 月 28 日午後 9:49 UTC](https://meta.discourse.org/t/500-internal-server-error-with-passkeys-and-discourseconnect/323877 "2024-08-28T21:49:15Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [2024 年 8 月 31 日午前 3:15 UTC](https://meta.discourse.org/t/500-internal-server-error-with-passkeys-and-discourseconnect/323877/3 "2024-08-31T03:15:37Z")

</div>

実際、私も同じ失敗を再現できますが、これは [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) がフロー内にあることによるものではありません。

私のパスキーログインは [meta.discourse.org](http://meta.discourse.org) では機能しましたが、社内サイトでは失敗しました。

トレースバック (`/logs`) でどのようなエラーが表示されますか？

私は以下を確認しました。

```plaintext
NoMethodError (undefined method `ok' for false)
app/controllers/session_controller.rb:809:in `login'
app/controllers/session_controller.rb:399:in `passkey_login'
app/controllers/application_controller.rb:424:in `block in with_resolved_locale'
app/controllers/application_controller.rb:424:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:64:in `call'
lib/middleware/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:393:in `call'
lib/middleware/csp_script_nonce_injector.rb:12:in `call'
config/initializers/008-rack-cors.rb:26:in `call'
lib/freedom_patches/rails_rack_logger_from_rails_7_2.rb:35:in `call_app'
lib/freedom_patches/rails_rack_logger_from_rails_7_2.rb:22:in `call'
config/initializers/100-quiet_logger.rb:20:in `call'
config/initializers/100-silence_logger.rb:29:in `call'
lib/middleware/enforce_hostname.rb:24:in `call'
lib/middleware/processing_request.rb:12:in `call'
lib/middleware/request_tracker.rb:360:in `call'

```

[@dev-managers](https://meta.discourse.org/groups/dev-managers) パスキーログインは部分的に壊れています

---

_[View the full topic](https://meta.discourse.org/t/500-internal-server-error-with-passkeys-and-discourseconnect/323877)._
