ruby-passkeys / warden-webauthn

A Warden Strategy for WebAuthn
MIT License
19 stars 3 forks source link

Refactor `relying_party_key` into `Warden::WebAuthn::RackHelpers` #4

Closed tcannonfodder closed 1 year ago

tcannonfodder commented 1 year ago

As part of the discussion for devise-passkeys, it became clear that Warden::WebAuthn::StrategyHelpers was being included in places that extend beyond its intended purpose. (see: https://github.com/ruby-passkeys/devise-passkeys/pull/25#issuecomment-1605239266)

A major cause of that was the relying_party_key method, which devise-passkeys was using to add the relying party to the request ENV.

In order to keep the two gems separated cleanly (to reduce conflicts like this), we need to: