Authentication
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
google.maps.journeySharing.AuthToken
इंटरफ़ेस
टोकन फ़ेच करने वाले टूल से मिला पुष्टि करने वाला टोकन.
प्रॉपर्टी |
expiresInSeconds |
टाइप: number
सेकंड में, कुकी के खत्म होने का समय. फ़ेच करने के बाद, टोकन की समयसीमा खत्म हो जाती है. |
token |
टाइप: string
टोकन. |
google.maps.journeySharing.AuthTokenContext
इंटरफ़ेस
इसमें JSON वेब टोकन बनाने के लिए ज़रूरी अतिरिक्त जानकारी होती है.
प्रॉपर्टी |
deliveryVehicleId optional |
टाइप: string optional
अगर डिलीवरी वाहन का आईडी दिया गया है, तो माइन किए गए टोकन में, डिलीवरी वाहन के आईडी के लिए निजी DeliveryVehicleId दावा होना चाहिए. |
taskId optional |
टाइप: string optional
अगर taskId दिया गया है, तो माइन किए गए टोकन में, दिए गए taskId के लिए निजी TaskId दावा होना चाहिए. |
trackingId optional |
टाइप: string optional
अगर ट्रैकिंग आईडी दिया गया है, तो माइन किए गए टोकन में, दिए गए ट्रैकिंग आईडी के लिए निजी TrackingId दावा होना चाहिए. |
tripId optional |
टाइप: string optional
अगर tripId दिया गया है, तो माइन किए गए टोकन में दिए गए tripId के लिए निजी TripId दावा होना चाहिए. |
vehicleId optional |
टाइप: string optional
अगर वाहन का आईडी दिया गया है, तो माइन किए गए टोकन में, वाहन के आईडी के लिए निजी VehicleId दावा होना चाहिए. |
google.maps.journeySharing.AuthTokenFetcher
typedef
पुष्टि करने वाले टोकन के फ़ंक्शन का टाइप.
यह एक ऐसा फ़ंक्शन है जो AuthTokenFetcherOptions
ऑब्जेक्ट को स्वीकार करता है. इस ऑब्जेक्ट में, माइन किए जाने वाले पुष्टि करने वाले टोकन की जानकारी होती है. इस फ़ंक्शन से टोकन बनना चाहिए और AuthToken
दिखना चाहिए. इसमें टोकन और उसकी समयसीमा की जानकारी शामिल होनी चाहिए.
function(AuthTokenFetcherOptions): Promise<AuthToken>
google.maps.journeySharing.AuthTokenFetcherOptions
इंटरफ़ेस
पुष्टि करने वाले टोकन को फ़ेच करने वाले टूल के विकल्प.
प्रॉपर्टी |
context |
पुष्टि करने वाले टोकन का कॉन्टेक्स्ट. संदर्भ में बताए गए आईडी, JSON वेब टोकन बनाने वाले एंडपॉइंट पर भेजे गए अनुरोध में जोड़े जाने चाहिए. |
serviceType |
फ़्लीट इंजन की सेवा का टाइप. |
google.maps.journeySharing.FleetEngineServiceType
कंस्टेंट
Fleet Engine की सेवाओं के टाइप.
const {FleetEngineServiceType} = await google.maps.importLibrary("journeySharing")
को कॉल करके ऐक्सेस करें. Maps JavaScript API में लाइब्रेरी देखें.
कॉन्स्टेंट |
DELIVERY_VEHICLE_SERVICE |
डिलीवरी वाहनों को ऐक्सेस करने के लिए इस्तेमाल की जाने वाली Fleet Engine सेवा. |
TASK_SERVICE |
टास्क की जानकारी ऐक्सेस करने के लिए इस्तेमाल की जाने वाली Fleet Engine सेवा. |
TRIP_SERVICE |
फ़्लेट इंजन सेवा, यात्रा की जानकारी ऐक्सेस करने के लिए इस्तेमाल की जाती है. |
UNKNOWN_SERVICE |
Fleet Engine की ऐसी सेवा जिसकी जानकारी नहीं है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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. |"]]