সীমিত ব্যবহার অ্যাক্সেস টোকেন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
সীমিত-ব্যবহারের অ্যাক্সেস টোকেন অনুরোধ স্পুফিং এবং রিপ্লে আক্রমণ থেকে সুরক্ষা প্রদান করে, এটি নিশ্চিত করে যে বার্তাটি যে ব্যবহারকারীকে পাঠানো হয়েছিল তার দ্বারা কাজটি করা হয়েছে। অনুরোধের পরামিতিগুলিতে একটি অনন্য টোকেন প্যারামিটার যোগ করে এবং যখন অ্যাকশনটি আহ্বান করা হয় তখন এটি যাচাই করে সুরক্ষা অর্জন করা হয়।
টোকেন প্যারামিটারটি একটি কী হিসাবে তৈরি করা উচিত যা শুধুমাত্র একটি নির্দিষ্ট ক্রিয়া এবং একটি নির্দিষ্ট ব্যবহারকারীর জন্য ব্যবহার করা যেতে পারে। অনুরোধ করা ক্রিয়া সম্পাদন করার আগে, আপনাকে পরীক্ষা করা উচিত যে টোকেনটি বৈধ এবং ব্যবহারকারীর জন্য আপনি যেটি তৈরি করেছেন তার সাথে মেলে। যদি টোকেন মেলে তবে ক্রিয়াটি সঞ্চালিত হতে পারে এবং টোকেনটি ভবিষ্যতের অনুরোধের জন্য অবৈধ হয়ে যায়।
HttpActionHandler- এর url
প্রপার্টির অংশ হিসেবে ব্যবহারকারীর কাছে অ্যাক্সেস টোকেন পাঠানো উচিত। উদাহরণস্বরূপ, যদি আপনার অ্যাপ্লিকেশনটি http://www.example.com/approve?requestId=123
এ অনুমোদনের অনুরোধগুলি পরিচালনা করে, তাহলে আপনার এটিতে একটি অতিরিক্ত accessToken
প্যারামিটার অন্তর্ভুক্ত করা উচিত এবং http://www.example.com/approve?requestId=123&accessToken=xyz
।
requestId=123
এবং accessToken=xyz
সংমিশ্রণ হল যা আপনাকে আগে থেকেই তৈরি করতে হবে, নিশ্চিত করুন যে accessToken
requestId
থেকে অনুমান করা যাবে না। requestId=123
এবং কোনো accessToken
বা xyz
এর সমান নয় এমন accessToken
সহ যেকোনো অনুমোদনের অনুরোধ প্রত্যাখ্যান করা উচিত। একবার এই অনুরোধটি হয়ে গেলে, একই আইডি এবং অ্যাক্সেস টোকেন সহ ভবিষ্যতের যেকোনো অনুরোধও প্রত্যাখ্যান করা উচিত।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Limited Use Access Tokens\n\nLimited-Use Access Tokens provide protection from request spoofing and [replay attacks](http://en.wikipedia.org/wiki/Replay_attack), ensuring that the action is performed by the user the message was sent to. Protection is achieved by adding a unique token parameter to the request parameters and verifying it when the action is invoked.\n\nThe token parameter should be generated as a key that can only be used for a specific action and a specific user. Before the requested action is performed, you should check that the token is valid and matches the one you generated for the user. If the token matches then the action can be performed and the token becomes invalid for future requests.\n\nAccess tokens should be sent to the user as part of the `url` property of the [HttpActionHandler](/workspace/gmail/markup/reference/types/HttpActionHandler). For instance, if your application handles approval requests at `http://www.example.com/approve?requestId=123`, you should consider including an additional `accessToken` parameter to it and listen to requests sent to `http://www.example.com/approve?requestId=123&accessToken=xyz`.\n\nThe combination `requestId=123` and `accessToken=xyz` is the one that you have to generate in advance, making sure that the `accessToken` cannot be deduced from the `requestId`. Any approval request with `requestId=123` and no `accessToken` or with a `accessToken` not equal to `xyz` should be rejected. Once this request gets through, any future request with the same id and access token should be rejected too."]]