TeslaBuds / AuthAppForTesla

54 stars 13 forks source link

unsupported SSO app #15

Open kennyma-eplus opened 2 years ago

kennyma-eplus commented 2 years ago

I use Refresh Token to access

it return unsupported SSO app

Kemmey commented 2 years ago

You need to use access token to request data from the api.

Refresh token is for generating access tokens :-D

meehow-m commented 2 years ago

I use Refresh Token to access [](https://owner-api.teslamotors.com /api/1/vehicles)

it return unsupported SSO app

to get actual bearer token use (replace) {{YOUR_SSO}})

curl --location --request POST 'https://auth.tesla.com/oauth2/v3/token' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --data-raw '{ "grant_type": "refresh_token", "client_id": "ownerapi", "refresh_token": "{{YOUR_SSO}}", "scope": "openid email offline_access" }'