Skip to main content

Does a MyGeotab session ever time out for a user? Customer wants to embed a URL of the live map

BenP-1924
Original Poster
Join the conversation

You need to be logged in to reply to this post and participate in the Geotab Community discussions.

6 Replies

Hey, @BenP-1924​!

Yep, sessions time out after 14 days, so they'd need to retrieve a new login token at that point.

Depending on what they need, Attrix had a live map solution they were demoing at Connect a couple years ago, and @LPPapillon-1145​ might be able to shed some extra info on that or talk about that solution in case it would help for them to use something that already exists. 🤔

 

Hope this helps get you pointed in the right direction. :)

 

Best,

Joy B

Thanks Joy.

We do have a product that handles SSO from a display device to show a real time map with time sensitive alerts. This solves the use-case of customers wanting an operations-center style map on display in an office location. It does not solve the use-case for embedding a live map within a web portal, intranet or other integrated solution. There are other ways to accomplish this. Can you share a bit more of what you're trying to accomplish?

BenP-1924
Original Poster

Yes, our customer wants to show the live map on display with an embedded URL in a slideshow. Their ask is what is the easiest way to do this, and if the session times out.

BenP-1924
Original Poster

Hi @LPPapillon-1145​ were you able to find any additional information on this?

BenP-1924
Original Poster

@LPPapillon-1145​  @EishiFUN​ I could really use some assistance with this, please and thank you!

Joy and LP are both on target here. Geotab uses a session ID (returned as part of the Auth process), and it's good for up to 14 days for MyGeotab api calls.

 

Are they looking to embed the MyGeotab map page directly in their webpage using the URL method found here: https://developers.geotab.com/myGeotab/guides/myGeotabUrls/

 

If yes, there is a section there that talks about Authentication at the bottom of that page. Once you have a session ID, you can pass it like this:

 

https://my.geotab.com/DATABASENAME/geotab/checkmate/ui/map.html#credentials:(database:DATABASENAME,rememberMe:!t,sessionId:'XXXXXXXXXXXXXXX',userName:'user@email.com')

 

You can try it out here: https://geotab.github.io/sdk/software/js-samples/singleSignOn.html

 

NOTE: You would need to setup a method within the page to do the authentication and pass the session ID as part of the request either by watching for failure or on a timed process.

Still have questions?