I'm trying to get my head around Oauth and token refresh.
I've got my app setup on my LaMetric making a request to my app end point however the token is an expired token. Does the LaMetric app handle all the token refresh? Is that being done entirely on the LaMetric device itself??
Best Answer
L
LaMetric B2B Support Team
said
over 8 years ago
John, you are right. LaMetric refreshes token by itself. You have to pass any errors from 3rd party services like 401 or 403 response to LaMetric in order to let it know that token is expired. Some service providers like Google may require additional "offline" access parameter in authorization url.
We have two tutorials dedicated to this topic here and here. They may be useful.
John, you are right. LaMetric refreshes token by itself. You have to pass any errors from 3rd party services like 401 or 403 response to LaMetric in order to let it know that token is expired. Some service providers like Google may require additional "offline" access parameter in authorization url.
We have two tutorials dedicated to this topic here and here. They may be useful.
J
John Beynon
said
over 8 years ago
perfect - a little bit of trial and error and I've got my tokens refreshing now..thanks!
John Beynon
I'm trying to get my head around Oauth and token refresh.
I've got my app setup on my LaMetric making a request to my app end point however the token is an expired token. Does the LaMetric app handle all the token refresh? Is that being done entirely on the LaMetric device itself??
John, you are right. LaMetric refreshes token by itself. You have to pass any errors from 3rd party services like 401 or 403 response to LaMetric in order to let it know that token is expired. Some service providers like Google may require additional "offline" access parameter in authorization url.
We have two tutorials dedicated to this topic here and here. They may be useful.
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstLaMetric B2B Support Team
John, you are right. LaMetric refreshes token by itself. You have to pass any errors from 3rd party services like 401 or 403 response to LaMetric in order to let it know that token is expired. Some service providers like Google may require additional "offline" access parameter in authorization url.
We have two tutorials dedicated to this topic here and here. They may be useful.
John Beynon
perfect - a little bit of trial and error and I've got my tokens refreshing now..thanks!
-
How to pull data from external site to display?
-
nodejs request "gets acces denied"
-
curl to python for eventghost
-
Push text from Eventghost to LaMetric via python
-
Basic API pull and json parse example....
-
A guide for starting an app?
-
A small wrapper to push your just created JIRA issues to your LaMetric.
-
Simple project to push home consumption data to be shown on a Lametric device
-
Interface to have Slack send messages to a LaMetric Time
-
Very simple module to push frames to LaMetric
See all 149 topics