संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
सीमित इस्तेमाल वाले टोकन से, आपको झूठे नाम से मेल भेजने के अनुरोध और फिर से हमला करने से सुरक्षा मिलती है. इससे यह पक्का होता है कि कार्रवाई उसी उपयोगकर्ता ने की है जिसे मैसेज भेजा गया था. सुरक्षा के लिए, अनुरोध पैरामीटर में एक यूनीक टोकन पैरामीटर जोड़ा जाता है और कार्रवाई शुरू होने पर इसकी पुष्टि की जाती है.
टोकन पैरामीटर एक कुंजी के रूप में जनरेट होना चाहिए. इसका इस्तेमाल सिर्फ़ किसी खास कार्रवाई और खास उपयोगकर्ता के लिए किया जा सकता है. अनुरोध की गई कार्रवाई करने से पहले, आपको यह जांच करनी चाहिए कि टोकन मान्य है और उपयोगकर्ता के लिए जनरेट किए गए टोकन से मेल खाता है. अगर टोकन का मिलान हो जाता है, तो कार्रवाई की जा सकती है. साथ ही, आने वाले अनुरोधों के लिए टोकन अमान्य हो जाता है.
ऐक्सेस टोकन, उपयोगकर्ता को HttpActionHandler की url प्रॉपर्टी के हिस्से के रूप में भेजे जाने चाहिए. उदाहरण के लिए, अगर आपका ऐप्लिकेशन http://www.example.com/approve?requestId=123 पर अनुमति के अनुरोधों को हैंडल करता है, तो आपको इसमें एक अतिरिक्त accessToken पैरामीटर शामिल करना चाहिए और http://www.example.com/approve?requestId=123&accessToken=xyz को भेजे गए अनुरोधों को सुनना चाहिए.
requestId=123 और accessToken=xyz का कॉम्बिनेशन requestId=123 को पहले से जनरेट करना है. इससे यह पक्का होता है कि accessToken का पता, requestId से नहीं लगाया जा सकता. requestId=123 या ऐसे accessToken या accessToken से मेल नहीं खाने वाले xyz के बराबर होने वाले अनुमति के अनुरोध को अस्वीकार कर दिया जाना चाहिए. इस अनुरोध को देखने के बाद, इसी आईडी और ऐक्सेस टोकन वाले किसी भी आने वाले अनुरोध को भी अस्वीकार कर दिया जाएगा.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2024-09-03 (UTC) को अपडेट किया गया."],[[["Limited-Use Access Tokens enhance security by mitigating request spoofing and replay attacks, ensuring actions are performed by the intended user."],["These tokens function as unique keys, valid for a specific action and user, verified before the action is executed and invalidated afterward."],["Access tokens are transmitted via the `url` property of the `HttpActionHandler`, requiring developers to include an `accessToken` parameter for verification."],["To ensure security, a unique combination of `requestId` and `accessToken` should be pre-generated, with any request lacking the correct token being rejected."],["Upon successful execution of a request with a valid token, subsequent requests using the same token should be denied to prevent replay attacks."]]],["The core concept is using Limited-Use Access Tokens to secure user actions. A unique token, tied to a specific action and user, is added to request parameters (e.g., in a URL). Before an action executes, the system verifies the token's validity and user association. Valid tokens are then invalidated to prevent reuse. The system should generate the access token, ensuring it's unpredictable from the request ID and reject requests with missing or invalid tokens.\n"]]