Analytics Dashboard के लिए Passkey Sign-In डिज़ाइन करना
Passkey दोबारा इस्तेमाल होने वाले password की जगह origin-bound credential देती हैं। जानें कि server को क्या verify करना चाहिए और account recovery अब भी क्यों ज़रूरी है।
Dashboard का password सिर्फ login form से अधिक की सुरक्षा करता है: इससे site settings, exports और account credentials तक पहुँच मिल सकती है। Passkey server को दोबारा इस्तेमाल होने वाला password भेजने के बजाय public-key credential का उपयोग करती हैं, जिससे password database चोरी और phishing का जोखिम कम होता है।
Web Authentication standard बताता है कि browser relying party से जुड़ी credential कैसे बनाता और उपयोग करता है। NIST ने जुलाई 2025 में अपनी digital identity guidelines का चौथा संस्करण प्रकाशित किया और 6 अक्टूबर 2026 को implementation resource hub जोड़ा। Authentication design पर फिर से विचार करने का यह अच्छा समय है। Passkey sign-in को बेहतर बनाती हैं, लेकिन session security, authorization या account recovery की ज़रूरत खत्म नहीं करतीं।
Server क्या Store करता है
Registration के दौरान server नया, अनुमान लगाना कठिन challenge बनाता है और उसे registration options के साथ browser को भेजता है। Browser authenticator से credential बनाने का अनुरोध करता है। Server लौटे हुए registration data को verify करता है, फिर credential identifier और public key को account से जोड़ता है।
Private key authenticator के पास रहती है; application उसे प्राप्त नहीं करती। Authenticator और provider के अनुसार passkey उपयोगकर्ता के उपकरणों के बीच sync हो सकती है। यदि local biometric verification उपयोग होती है, तो authenticator ही उसे करता है; उपयोगकर्ता का biometric data site को नहीं भेजा जाता।
Maintained WebAuthn server library का उपयोग करके public key, credential identifier और प्रासंगिक metadata store करें। Public key password नहीं है, लेकिन credential records किसी account से जुड़े रहते हैं और उन्हें access control तथा integrity protection चाहिए।
पूरी Authentication Ceremony Verify करें
Sign-in पर नया challenge जारी करें और उसे लंबित authentication attempt से जोड़ें। Authenticator challenge से जुड़े data पर हस्ताक्षर करता है और server registered public key से response verify करता है। Server को expected origin, relying party ID, challenge और user-presence या user-verification के आवश्यक flags भी verify करने चाहिए।
Challenge expire होना चाहिए और केवल एक बार उपयोग होना चाहिए, ताकि captured response को replay न किया जा सके। Verification में service द्वारा configured expected values का उपयोग करें; request से आए origin को authority न मानें। Protocol खुद बनाने या उसके binary formats खुद parse करने के बजाय maintained implementation का उपयोग करें।
Verification के बाद उचित protections के साथ सामान्य authenticated session बनाएँ। Passkey sign-in के समय credential पर नियंत्रण साबित करती है; आगे के requests में भी session validation और permission checks आवश्यक हैं। यदि product तत्काल account lockout का वादा करता है, तो passkey revoke होने के बाद existing sessions सक्रिय नहीं रहने चाहिए।
Rollout से पहले Recovery डिज़ाइन करें
Device खोने, credential provider उपलब्ध न होने या गलती से credential हटने पर वैध उपयोगकर्ता account से बाहर हो सकता है। एक से अधिक credential register करने दें और स्पष्ट करें कि कौन-से devices या providers प्रत्येक का उपयोग कर सकते हैं। Account page पर credentials साफ़ दिखें और authenticated user खोई हुई credential हटा सके।
Recovery एक अलग authentication path है। अगर fallback कमजोर हो या phishing के लिए आसान हो, तो attacker मजबूत sign-in को bypass कर सकता है। Enrollment और recovery पर जोखिम के अनुपात में checks लगाएँ, credential changes पर account owner को सूचित करें और passkey अनिवार्य करने से पहले support procedures तय करें।
Roll Out करें और Test करें
Registration और sign-in को उन browser तथा authenticator combinations पर test करें जिनका उपयोग आपके users वास्तव में करते हैं। Cancellation, expired challenge, replayed response, unexpected origin, removed credential और खोने के बाद recovery शामिल करें। चुना हुआ authenticator या device उपलब्ध न हो तो accessible fallback दें।
Analytics service के लिए लाभ तब सबसे अधिक है जब मजबूत sign-in के साथ हर site पर least-privilege access और export controls हों। Phishing-resistant login dashboard तक पहुँचने का एक रास्ता कम करता है; इससे हर authenticated action अपने-आप सुरक्षित नहीं हो जाता।
Comments
Loading comments…