Authentication
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
google.maps.journeySharing . AuthToken
ইন্টারফেস
প্রমাণীকরণ টোকেন টোকেন ফেচার দ্বারা ফেরত দেওয়া হয়েছে৷
বৈশিষ্ট্য |
---|
expiresInSeconds | প্রকার: number মেয়াদ শেষ হওয়ার সময় সেকেন্ডে। একটি টোকেন আনার পর এই পরিমাণ সময়ের মধ্যে মেয়াদ শেষ হয়ে যায়। |
token | প্রকার: string টোকেন। |
google.maps.journeySharing . AuthTokenContext
ইন্টারফেস
JSON ওয়েব টোকেন মিন্ট করার জন্য প্রয়োজনীয় অতিরিক্ত তথ্য রয়েছে।
বৈশিষ্ট্য |
---|
deliveryVehicleId optional | প্রকার: string optional প্রদান করা হলে, মিন্টেড টোকেনে প্রদত্ত ডেলিভারি ভেহিক্যালআইডির জন্য একটি ব্যক্তিগত DeliveryVehicleId দাবি থাকতে হবে। |
taskId optional | প্রকার: string optional প্রদান করা হলে, মিন্টেড টোকেনের প্রদত্ত টাস্কআইডির জন্য একটি ব্যক্তিগত TaskId দাবি থাকা উচিত। |
trackingId optional | প্রকার: string optional প্রদান করা হলে, মিন্টেড টোকেনের প্রদত্ত ট্র্যাকিংআইডির জন্য একটি ব্যক্তিগত TrackingId দাবি থাকা উচিত। |
tripId optional | প্রকার: string optional প্রদান করা হলে, মিন্টেড টোকেনে প্রদত্ত ট্রিপআইডির জন্য একটি ব্যক্তিগত TripId দাবি থাকা উচিত। |
vehicleId optional | প্রকার: string optional প্রদান করা হলে, মিন্টেড টোকেনে প্রদত্ত ভেহিক্যাল আইডির জন্য একটি ব্যক্তিগত VehicleId দাবি থাকা উচিত। |
google.maps.journeySharing . AuthTokenFetcher
typedef
প্রমাণীকরণ টোকেন ফাংশন প্রকার।
একটি ফাংশন যা একটি AuthTokenFetcherOptions
অবজেক্ট গ্রহণ করে, যাতে minted করা হবে এমন প্রমাণীকরণ টোকেন সম্পর্কে বিশদ রয়েছে৷ এই ফাংশনের টোকেন মিন্ট করা উচিত এবং টোকেন এবং এর মেয়াদ শেষ হওয়ার সময় সম্বলিত একটি AuthToken
ফেরত দেওয়া উচিত।
function( AuthTokenFetcherOptions ): Promise < AuthToken >
google.maps.journeySharing . AuthTokenFetcherOptions
ইন্টারফেস
প্রমাণীকরণ টোকেন আনার জন্য বিকল্প।
বৈশিষ্ট্য |
---|
context | প্রমাণীকরণ টোকেন প্রসঙ্গ। JSON ওয়েব টোকেন মিন্টিং এন্ডপয়েন্টে পাঠানো অনুরোধে প্রেক্ষাপটে উল্লেখ করা আইডি যোগ করা উচিত। |
serviceType | ফ্লিট ইঞ্জিন পরিষেবার ধরন। |
google.maps.journeySharing . FleetEngineServiceType
ধ্রুবক
ফ্লিট ইঞ্জিন পরিষেবাগুলির প্রকারগুলি৷
const {FleetEngineServiceType} = await google.maps.importLibrary("journeySharing")
কল করে অ্যাক্সেস করুন। Maps JavaScript API-এ লাইব্রেরিগুলি দেখুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-12-22 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2024-12-22 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Authentication\n\nThe documentation for has moved to a different page.\n\nThe documentation for the linked item could not be found. \n\n[AuthToken](#AuthToken)\ninterface\n---------------------------------\n\n\ngoogle.maps.journeySharing`.`AuthToken\ninterface\n\nThe auth token returned by the token fetcher.\n\n| ### Properties ||\n|-------------------------------------------------|-----------------------------------------------------------------------------------------------------------|\n| [expiresInSeconds](#AuthToken.expiresInSeconds) | **Type:** `number` The expiration time in seconds. A token expires in this amount of time after fetching. |\n| [token](#AuthToken.token) | **Type:** `string` The token. |\n\n[AuthTokenContext](#AuthTokenContext)\ninterface\n-----------------------------------------------\n\n\ngoogle.maps.journeySharing`.`AuthTokenContext\ninterface\n\nContains additional information needed to mint JSON Web Tokens.\n\n| ### Properties ||\n|---------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| [deliveryVehicleId](#AuthTokenContext.deliveryVehicleId)` `optional | **Type:** `string `optional When provided, the minted token should have a private `DeliveryVehicleId` claim for the provided deliveryVehicleId. |\n| [taskId](#AuthTokenContext.taskId)` `optional | **Type:** `string `optional When provided, the minted token should have a private `TaskId` claim for the provided taskId. |\n| [trackingId](#AuthTokenContext.trackingId)` `optional | **Type:** `string `optional When provided, the minted token should have a private `TrackingId` claim for the provided trackingId. |\n| [tripId](#AuthTokenContext.tripId)` `optional | **Type:** `string `optional When provided, the minted token should have a private `TripId` claim for the provided tripId. |\n| [vehicleId](#AuthTokenContext.vehicleId)` `optional | **Type:** `string `optional When provided, the minted token should have a private `VehicleId` claim for the provided vehicleId. |\n\n[AuthTokenFetcher](#AuthTokenFetcher)\ntypedef\n---------------------------------------------\n\n\ngoogle.maps.journeySharing`.`AuthTokenFetcher\ntypedef\n\nAuth token function type. \n\nA function that accepts a [AuthTokenFetcherOptions](/maps/documentation/javascript/reference/journey-sharing-authentication#AuthTokenFetcherOptions) object, containing details about the auth token to be minted. This function should mint the token and return a [AuthToken](/maps/documentation/javascript/reference/journey-sharing-authentication#AuthToken) containing the token and its expiry time.\n\n`function(`[AuthTokenFetcherOptions](/maps/documentation/javascript/reference/journey-sharing-authentication#AuthTokenFetcherOptions)`): `[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)`\u003c`[AuthToken](/maps/documentation/javascript/reference/journey-sharing-authentication#AuthToken)`\u003e` \n\n[AuthTokenFetcherOptions](#AuthTokenFetcherOptions)\ninterface\n-------------------------------------------------------------\n\n\ngoogle.maps.journeySharing`.`AuthTokenFetcherOptions\ninterface\n\nOptions for the auth token fetcher.\n\n| ### Properties ||\n|-----------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [context](#AuthTokenFetcherOptions.context) | **Type:** [AuthTokenContext](/maps/documentation/javascript/reference/journey-sharing-authentication#AuthTokenContext) The auth token context. IDs specified in the context should be added to the request sent to the JSON Web Token minting endpoint. |\n| [serviceType](#AuthTokenFetcherOptions.serviceType) | **Type:** [FleetEngineServiceType](/maps/documentation/javascript/reference/journey-sharing-authentication#FleetEngineServiceType) The Fleet Engine service type. |\n\n[FleetEngineServiceType](#FleetEngineServiceType)\nconstants\n-----------------------------------------------------------\n\n\ngoogle.maps.journeySharing`.`FleetEngineServiceType\nconstants\n\nTypes of Fleet Engine services.\n\nAccess by calling `const {FleetEngineServiceType} = await google.maps.importLibrary(\"journeySharing\")`. \nSee [Libraries in the Maps JavaScript API](/maps/documentation/javascript/libraries).\n\n| ### Constants ||\n|------------------------------------------------------------------------------|--------------------------------------------------------|\n| [DELIVERY_VEHICLE_SERVICE](#FleetEngineServiceType.DELIVERY_VEHICLE_SERVICE) | Fleet Engine service used to access delivery vehicles. |\n| [TASK_SERVICE](#FleetEngineServiceType.TASK_SERVICE) | Fleet Engine service used to access task information. |\n| [TRIP_SERVICE](#FleetEngineServiceType.TRIP_SERVICE) | Fleet Engine service used to access trip information. |\n| [UNKNOWN_SERVICE](#FleetEngineServiceType.UNKNOWN_SERVICE) | Unknown Fleet Engine service. |"]]