CJNE / pyporscheconnectapi

Python client library for Porsche Connect API
MIT License
47 stars 11 forks source link

Token refresh? #28

Closed andig closed 3 months ago

andig commented 1 year ago

Seems the new identity manager supports token refresh (scopes_supported: offline_access). A simple exchange doesn't do the trick though- probably needs additional headers. Any idea how token refresh could be supported?

CJNE commented 1 year ago

Oh that's interesting, I'll investigate. It depends on wether they have auth0 configured correctly though: https://community.auth0.com/t/accesstokenerror-when-requesting-offline-access-scope/62813

andig commented 1 year ago

I've managed to request offline_access and get the refresh token, but failed on the refresh.

fredriklj commented 3 months ago

I am closing this issue as the APIs we relied on have been retired. C.f #46